[Webkit-unassigned] [Bug 247593] Fix form association behavior when a form and a control with form= are removed from a document together
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 7 18:32:35 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=247593
Karl Dubost <karlcow at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |karlcow at apple.com
--- Comment #1 from Karl Dubost <karlcow at apple.com> ---
The test case being
debug('- Check if a form and a control are disassociated when they are removed from the document together.');
container.innerHTML = '<div><input form=owner><form id=owner></form></div>';
owner = document.getElementById('owner');
shouldBe('owner.elements.length', '1');
container.firstChild.remove();
shouldBe('owner.elements.length', '0');
There is another sets of tests failing in this example.
https://jsfiddle.net/f407psh1/show
Probably worth a separate bug.
With a form/option without a select element
data:text/html,<form%20id=firstOwner><option%20id=firstOption></option></form>
and in the console:
document.querySelector('#firstOption').form
returns
null in Firefox and Chrome
The current HTMLFormElement() in Safari
Same for
data:text/html,<form id=secondOwner><optgroup><option id=secondOption></option></optgroup></form>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221108/6564c09d/attachment.htm>
More information about the webkit-unassigned
mailing list