- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 13 Jan 2009 08:30:02 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv31389
Modified Files:
Overview.html
Log Message:
Make collections callable for compat with IE. (credit: mr) (whatwg r2648)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1817
retrieving revision 1.1818
diff -u -d -r1.1817 -r1.1818
--- Overview.html 13 Jan 2009 07:47:33 -0000 1.1817
+++ Overview.html 13 Jan 2009 08:30:00 -0000 1.1818
@@ -4470,7 +4470,8 @@
order</a>.<p class=note>The <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> list is
not in tree order.<p>An attribute that returns a collection must return the same
object every time it is retrieved.<h5 id=htmlcollection><span class=secno>2.8.2.1 </span>HTMLCollection</h5><p>The <code><a href=#htmlcollection-0>HTMLCollection</a></code> interface represents a generic
- <a href=#collections-0 title=collections>collection</a> of elements.<pre class=idl>interface <dfn id=htmlcollection-0>HTMLCollection</dfn> {
+ <a href=#collections-0 title=collections>collection</a> of elements.<pre class=idl>[Callable=<a href=#dom-htmlcollection-nameditem title=dom-HTMLCollection-namedItem>namedItem</a>]
+interface <dfn id=htmlcollection-0>HTMLCollection</dfn> {
readonly attribute unsigned long <a href=#dom-htmlcollection-length title=dom-HTMLCollection-length>length</a>;
[IndexGetter] Element <a href=#dom-htmlcollection-item title=dom-HTMLCollection-item>item</a>(in unsigned long index);
[NameGetter] Element <a href=#dom-htmlcollection-nameditem title=dom-HTMLCollection-namedItem>namedItem</a>(in DOMString name);
@@ -4488,7 +4489,8 @@
</ul><p>If no such elements are found, then the method must return
null.<h5 id=htmlformcontrolscollection><span class=secno>2.8.2.2 </span>HTMLFormControlsCollection</h5><p>The <code><a href=#htmlformcontrolscollection-0>HTMLFormControlsCollection</a></code> interface represents
a <a href=#collections-0 title=collections>collection</a> of <a href=#category-listed title=category-listed>listed</a> elements in <code><a href=#the-form-element>form</a></code>
- and <code><a href=#the-fieldset-element>fieldset</a></code> elements.<pre class=idl>interface <dfn id=htmlformcontrolscollection-0>HTMLFormControlsCollection</dfn> {
+ and <code><a href=#the-fieldset-element>fieldset</a></code> elements.<pre class=idl>[Callable=<a href=#dom-htmlformcontrolscollection-nameditem title=dom-HTMLFormControlsCollection-namedItem>namedItem</a>]
+interface <dfn id=htmlformcontrolscollection-0>HTMLFormControlsCollection</dfn> {
readonly attribute unsigned long <a href=#dom-htmlformcontrolscollection-length title=dom-HTMLFormControlsCollection-length>length</a>;
[IndexGetter] <a href=#htmlelement>HTMLElement</a> <a href=#dom-htmlformcontrolscollection-item title=dom-HTMLFormControlsCollection-item>item</a>(in unsigned long index);
[NameGetter] Object <a href=#dom-htmlformcontrolscollection-nameditem title=dom-HTMLFormControlsCollection-namedItem>namedItem</a>(in DOMString name);
@@ -4518,7 +4520,8 @@
--><h5 id=htmloptionscollection><span class=secno>2.8.2.3 </span>HTMLOptionsCollection</h5><p>The <code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code> interface represents a
list of <code><a href=#the-option-element>option</a></code> elements. It is always rooted on a
<code><a href=#the-select-element>select</a></code> element and has attributes and methods that
- manipulate that element's descendants.<pre class=idl>interface <dfn id=htmloptionscollection-0>HTMLOptionsCollection</dfn> {
+ manipulate that element's descendants.<pre class=idl>[Callable=<a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>]
+interface <dfn id=htmloptionscollection-0>HTMLOptionsCollection</dfn> {
attribute unsigned long <a href=#dom-htmloptionscollection-length title=dom-HTMLOptionsCollection-length>length</a>;
[IndexGetter] <a href=#htmloptionelement>HTMLOptionElement</a> <a href=#dom-htmloptionscollection-item title=dom-HTMLOptionsCollection-item>item</a>(in unsigned long index);
[NameGetter] Object <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(in DOMString name);
@@ -19343,7 +19346,10 @@
<dd><code title=attr-fs-target><a href=#attr-fs-target>target</a></code></dd>
<dt>DOM interface:</dt>
<dd>
-<pre class=idl>[NameGetter, IndexGetter]
+<pre class=idl>[NameGetter, IndexGetter]<!--
+XXX add Callable=namedItem; add namedItem (IE compat); maybe make form.elements === form? matters in cases like: form.elements.x.x:
+http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A%3Cform%20name%3Da%3E%3Cinput%20name%3Db%3E%3Cinput%20name%3Db%3E%3C%2Fform%3E%3Cscript%20id%3Da%3Ew(document.forms('a').elements('b')('b'))%3C%2Fscript%3E
+-->
interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
attribute DOMString <a href=#dom-form-accept-charset title=dom-form-accept-charset>accept-charset</a>;
attribute DOMString <a href=#dom-fs-action title=dom-fs-action>action</a>;
Received on Tuesday, 13 January 2009 08:30:18 UTC