Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Add document.head.
git-svn-id: http://svn.whatwg.org/webapps@4082 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 5, 2009
1 parent 6c65b65 commit 15f46ea
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
18 changes: 17 additions & 1 deletion index
Expand Up @@ -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>;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
22 changes: 22 additions & 0 deletions source
Expand Up @@ -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>;
Expand Down Expand Up @@ -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">
Expand Down Expand Up @@ -91527,6 +91548,7 @@ interface <span>HTMLDocument</span> {
Jorgen Horstink,
Jorunn Danielsen Newth,
Joseph Kesselman,
Joseph Pecoraro,
Josh Aas,
Josh Levenberg,
Joshua Randall,
Expand Down

0 comments on commit 15f46ea

Please sign in to comment.