Short URL: http://html5.org/r/4082
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 4082 | Add document.head. | 2009-10-05 23:32 |
Index: source
===================================================================
--- source (revision 4081)
+++ source (revision 4082)
@@ -6577,6 +6577,7 @@
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 @@
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 @@
Jorgen Horstink,
Jorunn Danielsen Newth,
Joseph Kesselman,
+ Joseph Pecoraro,
Josh Aas,
Josh Levenberg,
Joshua Randall,