Skip to content

Commit

Permalink
[] (0) Define document.scripts
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1462 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 18, 2008
1 parent 275a0d6 commit 7d884da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 7 additions & 3 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -3667,6 +3665,12 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<!-- 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
Expand Down
9 changes: 6 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2010,6 +2008,11 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
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
Expand Down

0 comments on commit 7d884da

Please sign in to comment.