[html5] r1462 - /

whatwg at whatwg.org whatwg at whatwg.org
Fri Apr 18 16:51:27 PDT 2008


Author: ianh
Date: 2008-04-18 16:51:26 -0700 (Fri, 18 Apr 2008)
New Revision: 1462

Modified:
   index
   source
Log:
[] (0) Define document.scripts

Modified: index
===================================================================
--- index	2008-04-18 23:44:32 UTC (rev 1461)
+++ index	2008-04-18 23:51:26 UTC (rev 1462)
@@ -2613,6 +2613,7 @@
   readonly attribute <a href="#htmlcollection0">HTMLCollection</a> <a href="#links0" title=dom-document-links>links</a>;
   readonly attribute <a href="#htmlcollection0">HTMLCollection</a> <a href="#forms0" title=dom-document-forms>forms</a>;
   readonly attribute <a href="#htmlcollection0">HTMLCollection</a> <a href="#anchors" title=dom-document-anchors>anchors</a>;
+  readonly attribute <a href="#htmlcollection0">HTMLCollection</a> <a href="#scripts" title=dom-document-scripts>scripts</a>;
   NodeList <a href="#getelementsbyname" title=dom-document-getElementsByName>getElementsByName</a>(in DOMString elementName);
   NodeList <a href="#getelementsbyclassname" title=dom-document-getElementsByClassName>getElementsByClassName</a>(in DOMString classNames);
 
@@ -2645,9 +2646,6 @@
   boolean <a href="#querycommandsupported" title=dom-document-queryCommandSupported>queryCommandSupported</a>(in DOMString commandId);
   DOMString <a href="#querycommandvalue" title=dom-document-queryCommandValue>queryCommandValue</a>(in DOMString commandId);
   <a href="#selection1">Selection</a> <a href="#getselection0" title=dom-document-getSelection>getSelection</a>();
-<!-- XXX we're not done here.
- readonly attribute HTMLCollection scripts;
--->
 };</pre>
 
   <p>Since the <code><a href="#htmldocument">HTMLDocument</a></code>
@@ -3667,6 +3665,12 @@
   <!-- XXX note that such elements are
   non-conforming -->
 
+  <p>The <dfn id=scripts
+   title=dom-document-scripts><code>scripts</code></dfn> attribute must
+   return an <code><a href="#htmlcollection0">HTMLCollection</a></code>
+   rooted at the <code>Document</code> node, whose filter matches only
+   <code><a href="#script0">script</a></code> elements.
+
   <p>The <dfn id=getelementsbyname
    title=dom-document-getElementsByName><code>getElementsByName(<var
    title="">name</var>)</code></dfn> method a string <var

Modified: source
===================================================================
--- source	2008-04-18 23:44:32 UTC (rev 1461)
+++ source	2008-04-18 23:51:26 UTC (rev 1462)
@@ -919,6 +919,7 @@
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-links">links</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-forms">forms</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-anchors">anchors</span>;
+  readonly attribute <span>HTMLCollection</span> <span title="dom-document-scripts">scripts</span>;
   NodeList <span title="dom-document-getElementsByName">getElementsByName</span>(in DOMString elementName);
   NodeList <span title="dom-document-getElementsByClassName">getElementsByClassName</span>(in DOMString classNames);
 
@@ -951,9 +952,6 @@
   boolean <span title="dom-document-queryCommandSupported">queryCommandSupported</span>(in DOMString commandId);
   DOMString <span title="dom-document-queryCommandValue">queryCommandValue</span>(in DOMString commandId);
   <span>Selection</span> <span title="dom-document-getSelection">getSelection</span>();
-<!-- XXX we're not done here.
- readonly attribute HTMLCollection scripts;
--->
 };</pre>
 
   <p>Since the <code>HTMLDocument</code> interface holds methods and
@@ -2010,6 +2008,11 @@
   elements with <code title="attr-a-name">name</code> attributes.</p><!-- XXX note that such elements are
   non-conforming -->
 
+  <p>The <dfn title="dom-document-scripts"><code>scripts</code></dfn>
+  attribute must return an <code>HTMLCollection</code> rooted at the
+  <code>Document</code> node, whose filter matches only
+  <code>script</code> elements.</p>
+
   <p>The <dfn
   title="dom-document-getElementsByName"><code>getElementsByName(<var
   title="">name</var>)</code></dfn> method a string <var




More information about the Commit-Watchers mailing list