diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/forms/form-control-infrastructure/form_owner_and_table_3.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/form-control-infrastructure/form_owner_and_table_3.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/forms/form-control-infrastructure/form_owner_and_table_3.html b/testing/web-platform/tests/html/semantics/forms/form-control-infrastructure/form_owner_and_table_3.html new file mode 100644 index 0000000000..db70b34b1a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/form-control-infrastructure/form_owner_and_table_3.html @@ -0,0 +1,17 @@ +<!doctype html> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<div id=log></div> +<table><form><tr><td><input></table> +<div id=2></div> +<script> +test(() => { + const input = document.querySelector("input"), + form = document.querySelector("form"); + assert_equals(input.form, form); + document.getElementById("2").appendChild(form.parentNode); + assert_equals(input.form, form); + document.getElementById("2").appendChild(input); + assert_equals(input.form, null); +}, "parser inserted flag is not reset by insertions with the owner form, but reset by by removal from the owner form"); +</script> |