Browse files

[] (0) Add document.head.

git-svn-id: http://svn.whatwg.org/webapps@4082 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 6c65b65 commit 15f46eaeb4c23d8c34c18810361b9e9dc6996fcc @Hixie Hixie committed Oct 5, 2009
Showing with 39 additions and 1 deletion.
  1. +17 −1 index
  2. +22 −0 source
View
18 index
@@ -6637,6 +6637,7 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
attribute DOMString <a href=#document.title title=dom-document-title>title</a>;
attribute DOMString <a href=#dom-document-dir title=dom-document-dir>dir</a>;
attribute <a href=#htmlelement>HTMLElement</a> <a href=#dom-document-body title=dom-document-body>body</a>;
+ readonly attribute <a href=#htmlheadelement>HTMLHeadElement</a> <a href=#dom-document-head title=dom-document-head>head</a>;
readonly attribute <a href=#htmlcollection>HTMLCollection</a> <a href=#dom-document-images title=dom-document-images>images</a>;
readonly attribute <a href=#htmlcollection>HTMLCollection</a> <a href=#dom-document-embeds title=dom-document-embeds>embeds</a>;
readonly attribute <a href=#htmlcollection>HTMLCollection</a> <a href=#dom-document-plugins title=dom-document-plugins>plugins</a>;
@@ -7002,11 +7003,25 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
document's root element, if there is one and it's an
<code><a href=#the-html-element-0>html</a></code> element, or null otherwise.</p>
- <p><dfn id=the-head-element>The <code>head</code> element</dfn> of a document is the
+ <hr><dl class=domintro><dt><var title="">document</var> . <code title=dom-document-head><a href=#dom-document-head>head</a></code></dt>
+ <dd>
+ <p>Returns <a href=#the-head-element>the <code>head</code> element</a>.</p>
+ </dd>
+
+ </dl><p><dfn id=the-head-element>The <code>head</code> element</dfn> of a document is the
first <code><a href=#the-head-element-0>head</a></code> element that is a child of <a href=#the-html-element>the
<code>html</code> element</a>, if there is one, or null
otherwise.</p>
+ <div class=impl>
+
+ <p>The <dfn id=dom-document-head title=dom-document-head><code>head</code></dfn>
+ attribute, on getting, must return <a href=#the-head-element>the <code>head</code>
+ element</a> of the document (a <code><a href=#the-head-element-0>head</a></code> element or
+ null).</p>
+
+ </div>
+
<hr><dl class=domintro><dt><var title="">document</var> . <code title=dom-document-title><a href=#document.title>title</a></code> [ = <var title="">value</var> ]</dt>
<dd>
<p>Returns the document's title, as given by <a href=#the-title-element>the
@@ -74414,6 +74429,7 @@ interface <a href=#htmldocument>HTMLDocument</a> {
Jorgen Horstink,
Jorunn Danielsen Newth,
Joseph Kesselman,
+ Joseph Pecoraro,
Josh Aas,
Josh Levenberg,
Joshua Randall,
View
22 source
@@ -6577,6 +6577,7 @@ interface <dfn>HTMLDocument</dfn> {
attribute DOMString <span title="dom-document-title">title</span>;
attribute DOMString <span title="dom-document-dir">dir</span>;
attribute <span>HTMLElement</span> <span title="dom-document-body">body</span>;
+ readonly attribute <span>HTMLHeadElement</span> <span title="dom-document-head">head</span>;
readonly attribute <span>HTMLCollection</span> <span title="dom-document-images">images</span>;
readonly attribute <span>HTMLCollection</span> <span title="dom-document-embeds">embeds</span>;
readonly attribute <span>HTMLCollection</span> <span title="dom-document-plugins">plugins</span>;
@@ -7000,11 +7001,31 @@ interface <dfn>HTMLDocument</dfn> {
document's root element, if there is one and it's an
<code>html</code> element, or null otherwise.</p>
+ <hr>
+
+ <dl class="domintro">
+
+ <dt><var title="">document</var> . <code title="dom-document-head">head</code></dt>
+ <dd>
+ <p>Returns <span>the <code>head</code> element</span>.</p>
+ </dd>
+
+ </dl>
+
<p><dfn>The <code>head</code> element</dfn> of a document is the
first <code>head</code> element that is a child of <span>the
<code>html</code> element</span>, if there is one, or null
otherwise.</p>
+ <div class="impl">
+
+ <p>The <dfn title="dom-document-head"><code>head</code></dfn>
+ attribute, on getting, must return <span>the <code>head</code>
+ element</span> of the document (a <code>head</code> element or
+ null).</p>
+
+ </div>
+
<hr>
<dl class="domintro">
@@ -91527,6 +91548,7 @@ interface <span>HTMLDocument</span> {
Jorgen Horstink,
Jorunn Danielsen Newth,
Joseph Kesselman,
+ Joseph Pecoraro,
Josh Aas,
Josh Levenberg,
Joshua Randall,

0 comments on commit 15f46ea

Please sign in to comment.