blob: db70b34b1adb81f197013175dc131a8aa361ac52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>
|