HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
4082Add document.head.2009-10-05 23:32
@@ -6570,20 +6570,21 @@ interface <dfn>HTMLDocument</dfn> {
   readonly attribute DOMString <span title="dom-document-compatMode">compatMode</span>;
            attribute DOMString <span title="dom-document-charset">charset</span>;
   readonly attribute DOMString <span title="dom-document-characterSet">characterSet</span>;
   readonly attribute DOMString <span title="dom-document-defaultCharset">defaultCharset</span>;
   readonly attribute DOMString <span title="dom-document-readyState">readyState</span>;
 
   // <span>DOM tree accessors</span>
            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>;
   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-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);
   NodeList <span title="dom-document-getItems">getItems</span>(in optional DOMString typeNames);
   <span title="dom-document-namedItem">getter</span> any (in DOMString name);
@@ -6993,25 +6994,45 @@ interface <dfn>HTMLDocument</dfn> {
   </div>
 
 
 
   <h4><dfn>DOM tree accessors</dfn></h4>
 
   <p><dfn>The <code>html</code> element</dfn> of a document is the
   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">
 
    <dt><var title="">document</var> . <code title="dom-document-title">title</code> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the document's title, as given by <span>the
     <code>title</code> element</span>.</p>
     <p>Can be set, to update the document's title. If there is no
     <span title="the head element"><code>head</code> element</span>,
@@ -91520,20 +91541,21 @@ interface <span>HTMLDocument</span> {
   Johnny Stenback,
   Jon Ferraiolo,
   Jon Gibbins,
   Jon Perlow,
   Jonas Sicking,
   Jonathan Worent,
   Jonny Axelsson,
   Jorgen Horstink,
   Jorunn Danielsen Newth,
   Joseph Kesselman,
+  Joseph Pecoraro,
   Josh Aas,
   Josh Levenberg,
   Joshua Randall,
   Jukka K. Korpela,
   Jules Cl&eacute;ment-Ripoche,
   Julian Reschke,
   Justin Sinclair,
   Kai Hendry,
   Kartikaya Gupta,
   Kathy Walton,

|