[html5] r7942 - [giow] (3) Match the warped reality better. Fixing https://www.w3.org/Bugs/Publi [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 7 16:33:21 PDT 2013


Author: ianh
Date: 2013-06-07 16:33:19 -0700 (Fri, 07 Jun 2013)
New Revision: 7942

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Match the warped reality better.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21997
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2013-06-07 22:55:46 UTC (rev 7941)
+++ complete.html	2013-06-07 23:33:19 UTC (rev 7942)
@@ -44173,7 +44173,7 @@
   readonly attribute <a href=#htmlformcontrolscollection>HTMLFormControlsCollection</a> <a href=#dom-form-elements title=dom-form-elements>elements</a>;
   readonly attribute long <a href=#dom-form-length title=dom-form-length>length</a>;
   <a href=#dom-form-item title=dom-form-item>getter</a> <a href=#element>Element</a> (unsigned long index);
-  <a href=#dom-form-nameditem title=dom-form-namedItem>getter</a> object (DOMString name);
+  <a href=#dom-form-nameditem title=dom-form-namedItem>getter</a> (<a href=#radionodelist>RadioNodeList</a> or <a href=#htmlinputelement>HTMLInputElement</a> or <a href=#htmlimageelement>HTMLImageElement</a>) (DOMString name);
 
   void <a href=#dom-form-submit title=dom-form-submit>submit</a>();
   void <a href=#dom-form-reset title=dom-form-reset>reset</a>();
@@ -44312,21 +44312,34 @@
   <hr><!-- Welcome to crazy town. Population: The Web. --><p>Each <code><a href=#the-form-element>form</a></code> element has a mapping of names to elements called the <dfn id=past-names-map>past names
   map</dfn>. It is used to persist names of controls even when they change names.</p>
 
-  <p>The <a href=#supported-property-names>supported property names</a> consist of the values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes of all the <a href=#category-listed title=category-listed>listed elements</a> and <code><a href=#the-img-element>img</a></code> elements that are descendants
-  of the <code><a href=#the-form-element>form</a></code> element, and all the names currently in the <a href=#past-names-map>past names map</a>,
-  in <a href=#tree-order>tree order</a>, with <code title=attr-id><a href=#the-id-attribute>id</a></code> attributes preceding <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes preceding entries from the <a href=#past-names-map>past names
-  map</a>, with multiple entries in the <a href=#past-names-map>past names map</a> for the same element being
-  ordered chronologically by when they were added to the map, and in all cases ignoring later
-  duplicates.</p>
+  <p>The <a href=#supported-property-names>supported property names</a> consist of:</p>
 
+  <ul><li>The values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes of all the <a href=#category-listed title=category-listed>listed
+   elements</a> whose <a href=#form-owner>form owner</a> is the <code><a href=#the-form-element>form</a></code> element, with the
+   exception of <code><a href=#the-input-element>input</a></code> elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code>
+   attribute is in the <a href="#image-button-state-(type=image)" title=attr-input-type-image>Image Button</a> state, and</li>
+
+   <li>The values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes of all the <code><a href=#the-img-element>img</a></code> elements that are
+   descendants of the <code><a href=#the-form-element>form</a></code> element, and</li>
+
+   <li>All the names currently in the <a href=#past-names-map>past names map</a>.</li>
+
+  </ul><p>The values must be listed in <a href=#tree-order>tree order</a>, with <code title=attr-id><a href=#the-id-attribute>id</a></code>
+  attributes preceding <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes preceding entries from the
+  <a href=#past-names-map>past names map</a> when the same element has more than one, and with multiple entries in
+  the <a href=#past-names-map>past names map</a> for the same element being ordered chronologically by when they
+  were added to the map, and in all cases ignoring later duplicates.</p>
+
   <p>When a <code><a href=#the-form-element>form</a></code> element is <dfn id=dom-form-nameditem title=dom-form-namedItem>indexed for named property
   retrieval</dfn>, the user agent must run the following steps:</p>
 
   <ol><li><p>Let <var title="">candidates</var> be a <a href=#live>live</a> <code><a href=#radionodelist>RadioNodeList</a></code>
-   object containing all the <a href=#category-listed title=category-listed>listed elements</a> that are
-   descendants of the <code><a href=#the-form-element>form</a></code> element and that have either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute equal
-   to <var title="">name</var>, in <a href=#tree-order>tree order</a>.</li>
+   object containing all the <a href=#category-listed title=category-listed>listed elements</a> whose <a href=#form-owner>form
+   owner</a> is the <code><a href=#the-form-element>form</a></code> element that have either an <code title=attr-id><a href=#the-id-attribute>id</a></code>
+   attribute or a <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute equal to <var title="">name</var>, with the exception of <code><a href=#the-input-element>input</a></code> elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href="#image-button-state-(type=image)" title=attr-input-type-image>Image
+   Button</a> state, in <a href=#tree-order>tree order</a>.</li>
 
+   <!-- we return RadioNodeList here for consistency -->
    <li><p>If <var title="">candidates</var> is empty, let <var title="">candidates</var> be a
    <a href=#live>live</a> <code><a href=#radionodelist>RadioNodeList</a></code> object containing all the <code><a href=#the-img-element>img</a></code> elements
    that are descendants of the <code><a href=#the-form-element>form</a></code> element and that have either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-img-name><a href=#attr-img-name>name</a></code> attribute equal

Modified: index
===================================================================
--- index	2013-06-07 22:55:46 UTC (rev 7941)
+++ index	2013-06-07 23:33:19 UTC (rev 7942)
@@ -44173,7 +44173,7 @@
   readonly attribute <a href=#htmlformcontrolscollection>HTMLFormControlsCollection</a> <a href=#dom-form-elements title=dom-form-elements>elements</a>;
   readonly attribute long <a href=#dom-form-length title=dom-form-length>length</a>;
   <a href=#dom-form-item title=dom-form-item>getter</a> <a href=#element>Element</a> (unsigned long index);
-  <a href=#dom-form-nameditem title=dom-form-namedItem>getter</a> object (DOMString name);
+  <a href=#dom-form-nameditem title=dom-form-namedItem>getter</a> (<a href=#radionodelist>RadioNodeList</a> or <a href=#htmlinputelement>HTMLInputElement</a> or <a href=#htmlimageelement>HTMLImageElement</a>) (DOMString name);
 
   void <a href=#dom-form-submit title=dom-form-submit>submit</a>();
   void <a href=#dom-form-reset title=dom-form-reset>reset</a>();
@@ -44312,21 +44312,34 @@
   <hr><!-- Welcome to crazy town. Population: The Web. --><p>Each <code><a href=#the-form-element>form</a></code> element has a mapping of names to elements called the <dfn id=past-names-map>past names
   map</dfn>. It is used to persist names of controls even when they change names.</p>
 
-  <p>The <a href=#supported-property-names>supported property names</a> consist of the values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes of all the <a href=#category-listed title=category-listed>listed elements</a> and <code><a href=#the-img-element>img</a></code> elements that are descendants
-  of the <code><a href=#the-form-element>form</a></code> element, and all the names currently in the <a href=#past-names-map>past names map</a>,
-  in <a href=#tree-order>tree order</a>, with <code title=attr-id><a href=#the-id-attribute>id</a></code> attributes preceding <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes preceding entries from the <a href=#past-names-map>past names
-  map</a>, with multiple entries in the <a href=#past-names-map>past names map</a> for the same element being
-  ordered chronologically by when they were added to the map, and in all cases ignoring later
-  duplicates.</p>
+  <p>The <a href=#supported-property-names>supported property names</a> consist of:</p>
 
+  <ul><li>The values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes of all the <a href=#category-listed title=category-listed>listed
+   elements</a> whose <a href=#form-owner>form owner</a> is the <code><a href=#the-form-element>form</a></code> element, with the
+   exception of <code><a href=#the-input-element>input</a></code> elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code>
+   attribute is in the <a href="#image-button-state-(type=image)" title=attr-input-type-image>Image Button</a> state, and</li>
+
+   <li>The values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes of all the <code><a href=#the-img-element>img</a></code> elements that are
+   descendants of the <code><a href=#the-form-element>form</a></code> element, and</li>
+
+   <li>All the names currently in the <a href=#past-names-map>past names map</a>.</li>
+
+  </ul><p>The values must be listed in <a href=#tree-order>tree order</a>, with <code title=attr-id><a href=#the-id-attribute>id</a></code>
+  attributes preceding <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attributes preceding entries from the
+  <a href=#past-names-map>past names map</a> when the same element has more than one, and with multiple entries in
+  the <a href=#past-names-map>past names map</a> for the same element being ordered chronologically by when they
+  were added to the map, and in all cases ignoring later duplicates.</p>
+
   <p>When a <code><a href=#the-form-element>form</a></code> element is <dfn id=dom-form-nameditem title=dom-form-namedItem>indexed for named property
   retrieval</dfn>, the user agent must run the following steps:</p>
 
   <ol><li><p>Let <var title="">candidates</var> be a <a href=#live>live</a> <code><a href=#radionodelist>RadioNodeList</a></code>
-   object containing all the <a href=#category-listed title=category-listed>listed elements</a> that are
-   descendants of the <code><a href=#the-form-element>form</a></code> element and that have either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute equal
-   to <var title="">name</var>, in <a href=#tree-order>tree order</a>.</li>
+   object containing all the <a href=#category-listed title=category-listed>listed elements</a> whose <a href=#form-owner>form
+   owner</a> is the <code><a href=#the-form-element>form</a></code> element that have either an <code title=attr-id><a href=#the-id-attribute>id</a></code>
+   attribute or a <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute equal to <var title="">name</var>, with the exception of <code><a href=#the-input-element>input</a></code> elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href="#image-button-state-(type=image)" title=attr-input-type-image>Image
+   Button</a> state, in <a href=#tree-order>tree order</a>.</li>
 
+   <!-- we return RadioNodeList here for consistency -->
    <li><p>If <var title="">candidates</var> is empty, let <var title="">candidates</var> be a
    <a href=#live>live</a> <code><a href=#radionodelist>RadioNodeList</a></code> object containing all the <code><a href=#the-img-element>img</a></code> elements
    that are descendants of the <code><a href=#the-form-element>form</a></code> element and that have either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-img-name><a href=#attr-img-name>name</a></code> attribute equal

Modified: source
===================================================================
--- source	2013-06-07 22:55:46 UTC (rev 7941)
+++ source	2013-06-07 23:33:19 UTC (rev 7942)
@@ -48342,7 +48342,7 @@
   readonly attribute <span>HTMLFormControlsCollection</span> <span title="dom-form-elements">elements</span>;
   readonly attribute long <span title="dom-form-length">length</span>;
   <span title="dom-form-item">getter</span> <span>Element</span> (unsigned long index);
-  <span title="dom-form-namedItem">getter</span> object (DOMString name);
+  <span title="dom-form-namedItem">getter</span> (<span>RadioNodeList</span> or <span>HTMLInputElement</span> or <span>HTMLImageElement</span>) (DOMString name);
 
   void <span title="dom-form-submit">submit</span>();
   void <span title="dom-form-reset">reset</span>();
@@ -48508,27 +48508,44 @@
   <p>Each <code>form</code> element has a mapping of names to elements called the <dfn>past names
   map</dfn>. It is used to persist names of controls even when they change names.</p>
 
-  <p>The <span>supported property names</span> consist of the values of all the <code
-  title="attr-id">id</code> and <code title="attr-fe-name">name</code> attributes of all the <span
-  title="category-listed">listed elements</span> and <code>img</code> elements that are descendants
-  of the <code>form</code> element, and all the names currently in the <span>past names map</span>,
-  in <span>tree order</span>, with <code title="attr-id">id</code> attributes preceding <code
-  title="attr-fe-name">name</code> attributes preceding entries from the <span>past names
-  map</span>, with multiple entries in the <span>past names map</span> for the same element being
-  ordered chronologically by when they were added to the map, and in all cases ignoring later
-  duplicates.</p>
+  <p>The <span>supported property names</span> consist of:</p>
 
+  <ul>
+
+   <li>The values of all the <code title="attr-id">id</code> and <code
+   title="attr-fe-name">name</code> attributes of all the <span title="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 title="attr-input-type">type</code>
+   attribute is in the <span title="attr-input-type-image">Image Button</span> state, and</li>
+
+   <li>The values of all the <code title="attr-id">id</code> and <code
+   title="attr-fe-name">name</code> attributes of all the <code>img</code> elements that are
+   descendants of the <code>form</code> element, and</li>
+
+   <li>All the names currently in the <span>past names map</span>.</li>
+
+  </ul>
+
+  <p>The values must be listed in <span>tree order</span>, with <code title="attr-id">id</code>
+  attributes preceding <code title="attr-fe-name">name</code> attributes preceding entries from the
+  <span>past names map</span> when the same element has more than one, and with multiple entries in
+  the <span>past names map</span> for the same element being ordered chronologically by when they
+  were added to the map, and in all cases ignoring later duplicates.</p>
+
   <p>When a <code>form</code> element is <dfn title="dom-form-namedItem">indexed for named property
   retrieval</dfn>, the user agent must run the following steps:</p>
 
   <ol>
 
    <li><p>Let <var title="">candidates</var> be a <span>live</span> <code>RadioNodeList</code>
-   object containing all the <span title="category-listed">listed elements</span> that are
-   descendants of the <code>form</code> element and that have either an <code
-   title="attr-id">id</code> attribute or a <code title="attr-fe-name">name</code> attribute equal
-   to <var title="">name</var>, in <span>tree order</span>.</p></li>
+   object containing all the <span title="category-listed">listed elements</span> whose <span>form
+   owner</span> is the <code>form</code> element that have either an <code title="attr-id">id</code>
+   attribute or a <code title="attr-fe-name">name</code> attribute equal to <var
+   title="">name</var>, with the exception of <code>input</code> elements whose <code
+   title="attr-input-type">type</code> attribute is in the <span title="attr-input-type-image">Image
+   Button</span> state, in <span>tree order</span>.</p></li>
 
+   <!-- we return RadioNodeList here for consistency -->
    <li><p>If <var title="">candidates</var> is empty, let <var title="">candidates</var> be a
    <span>live</span> <code>RadioNodeList</code> object containing all the <code>img</code> elements
    that are descendants of the <code>form</code> element and that have either an <code




More information about the Commit-Watchers mailing list