Skip to content

Commit

Permalink
Make form.elements rooted at the document, not the form
Browse files Browse the repository at this point in the history
Fixes #2764, and matches existing implementations, as shown by
web-platform-tests/wpt#6255.
  • Loading branch information
hzr authored and domenic committed Jun 15, 2017
1 parent 7c2b5dc commit 821229b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -42464,10 +42464,10 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
<hr>

<p>The <dfn><code data-x="dom-form-elements">elements</code></dfn> IDL attribute must return an
<code>HTMLFormControlsCollection</code> rooted at the <code>form</code> element, whose filter
matches <span data-x="category-listed">listed elements</span> whose <span>form owner</span> is the
<code>form</code> element, with the exception of <code>input</code> elements whose <code
data-x="attr-input-type">type</code> attribute is in the <span
<code>HTMLFormControlsCollection</code> rooted at the <code>form</code> element's
<span>node document</span>, whose filter matches <span data-x="category-listed">listed elements</span>
whose <span>form owner</span> is the <code>form</code> element, with the exception of <code>input</code>
elements whose <code data-x="attr-input-type">type</code> attribute is in the <span
data-x="attr-input-type-image">Image Button</span> state, which must, for historical reasons, be
excluded from this particular collection.</p>

Expand Down

0 comments on commit 821229b

Please sign in to comment.