[whatwg] Bug in form association algorithm
Jonas Sicking
jonas at sicking.cc
Tue Mar 30 15:05:37 PDT 2010
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
Document"?
/ Jonas
More information about the whatwg
mailing list