W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] Bug in form association algorithm

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 30 Mar 2010 15:05:37 -0700
Message-ID: <63df84f1003301505n26329832jdbe74f69848bb2e9@mail.gmail.com>
The spec says

"When a form-associated element has a form attribute and the ID of any
of the form elements in the Document changes, then the user agent must
reset the form owner of that form-associated element."

However it does not seem to reset the form owner if a form element
with an ID is added or removed to the Document. I suspect this is an
oversight that needs to be fixed.

Also, one critical step in the "reset the form owner" algorithm is
somewhat ambigious. Step 3.1 says

"If the first element in the Document to have an ID that is
case-sensitively equal to the element's form content attribute's value
is a form element, then associate the form-associated element with
that form  element."

However I wonder if "in the Document" includes only nodes that are
descendants of Document, or if it includes all nodes whose
ownerDocument is the Document. I.e. are disconnected subtrees "in the

/ Jonas
Received on Tuesday, 30 March 2010 15:05:37 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC