Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/document-metadata/the-base-element/base_target_does_not_affect_iframe_src_navigation.html - WPT Dashboard Interop Dashboard
<base id="base" target="_blank">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe id="i" src="about:blank"></iframe>
<script>
async_test(function(t) {
window.onmessage = () => t.done();
i.src = "data:text/html,This should navigate the iframe<script>top.postMessage('done', '*');</sc" + "ript>";
});
</script>