[html5] r2648 - [giow] (2) Make collections callable for compat with IE. (credit: mr)
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jan 13 00:29:55 PST 2009
Author: ianh
Date: 2009-01-13 00:29:54 -0800 (Tue, 13 Jan 2009)
New Revision: 2648
Modified:
index
source
Log:
[giow] (2) Make collections callable for compat with IE. (credit: mr)
Modified: index
===================================================================
--- index 2009-01-13 07:47:28 UTC (rev 2647)
+++ index 2009-01-13 08:29:54 UTC (rev 2648)
@@ -5312,7 +5312,8 @@
<p>The <code><a href=#htmlcollection-0>HTMLCollection</a></code> interface represents a generic
<a href=#collections-0 title=collections>collection</a> of elements.</p>
- <pre class=idl>interface <dfn id=htmlcollection-0>HTMLCollection</dfn> {
+ <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);
@@ -5346,7 +5347,8 @@
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.</p>
- <pre class=idl>interface <dfn id=htmlformcontrolscollection-0>HTMLFormControlsCollection</dfn> {
+ <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);
@@ -5386,7 +5388,8 @@
<code><a href=#the-select-element>select</a></code> element and has attributes and methods that
manipulate that element's descendants.</p>
- <pre class=idl>interface <dfn id=htmloptionscollection-0>HTMLOptionsCollection</dfn> {
+ <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);
@@ -23755,7 +23758,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>;
Modified: source
===================================================================
--- source 2009-01-13 07:47:28 UTC (rev 2647)
+++ source 2009-01-13 08:29:54 UTC (rev 2648)
@@ -5143,7 +5143,8 @@
<p>The <code>HTMLCollection</code> interface represents a generic
<span title="collections">collection</span> of elements.</p>
- <pre class="idl">interface <dfn>HTMLCollection</dfn> {
+ <pre class="idl">[Callable=<span title="dom-HTMLCollection-namedItem">namedItem</span>]
+interface <dfn>HTMLCollection</dfn> {
readonly attribute unsigned long <span title="dom-HTMLCollection-length">length</span>;
[IndexGetter] Element <span title="dom-HTMLCollection-item">item</span>(in unsigned long index);
[NameGetter] Element <span title="dom-HTMLCollection-namedItem">namedItem</span>(in DOMString name);
@@ -5189,7 +5190,8 @@
title="category-listed">listed</span> elements in <code>form</code>
and <code>fieldset</code> elements.</p>
- <pre class="idl">interface <dfn>HTMLFormControlsCollection</dfn> {
+ <pre class="idl">[Callable=<span title="dom-HTMLFormControlsCollection-namedItem">namedItem</span>]
+interface <dfn>HTMLFormControlsCollection</dfn> {
readonly attribute unsigned long <span title="dom-HTMLFormControlsCollection-length">length</span>;
[IndexGetter] <span>HTMLElement</span> <span title="dom-HTMLFormControlsCollection-item">item</span>(in unsigned long index);
[NameGetter] Object <span title="dom-HTMLFormControlsCollection-namedItem">namedItem</span>(in DOMString name);
@@ -5251,7 +5253,8 @@
<code>select</code> element and has attributes and methods that
manipulate that element's descendants.</p>
- <pre class="idl">interface <dfn>HTMLOptionsCollection</dfn> {
+ <pre class="idl">[Callable=<span title="dom-HTMLOptionsCollection-namedItem">namedItem</span>]
+interface <dfn>HTMLOptionsCollection</dfn> {
attribute unsigned long <span title="dom-HTMLOptionsCollection-length">length</span>;
[IndexGetter] <span>HTMLOptionElement</span> <span title="dom-HTMLOptionsCollection-item">item</span>(in unsigned long index);
[NameGetter] Object <span title="dom-HTMLOptionsCollection-namedItem">namedItem</span>(in DOMString name);
@@ -26428,7 +26431,10 @@
<dd><code title="attr-fs-target">target</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>HTMLFormElement</dfn> : <span>HTMLElement</span> {
attribute DOMString <span title="dom-form-accept-charset">accept-charset</span>;
attribute DOMString <span title="dom-fs-action">action</span>;
More information about the Commit-Watchers
mailing list