[Bug 15704] HTMLFormElement::elements broken for forms outside a document

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15704

--- Comment #4 from Kent Tamura <tkent@chromium.org> 2012-03-16 06:24:28 UTC ---
(In reply to comment #2)
> We could also say that orphan nodes or nodes in orphan subtrees shouldn't be
> associated.

Yeah, it would be very simple, and I like it.  But it's not compatible with
existing browsers, and I'm afraid it will break existing web sites.

If we changed the specification to match the existing browsers, the spec would
be:

... return an HTMLFormControlCollection rooted at the Document node if the form
element is in the document tree, otherwise return an HTMLFormControlCollection
rooted at the form element, ...

because we need to handle form controls with 'form' content attributes.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 16 March 2012 06:24:34 UTC