Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<!-- This behavior is not explicitly specified. -->
<iframe id=myframe name=framename></iframe>
<form id=myform target=framename action="resources/form.html"></form>
<script>
async_test(t => {
myframe.onload = t.step_func_done(() => {
assert_equals(
myframe.contentDocument.location.pathname,
'/html/semantics/forms/form-submission-0/resources/location.html');
});
myform.submit();
myframe.contentDocument.location = 'resources/location.html';
}, 'Verifies that location navigations take precedence when following form submissions.');
</script>