Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[] (0) Add document.head.
- Loading branch information
Showing
with
39 additions
and
1 deletion.
-
+17
−1
index
-
+22
−0
source
|
@@ -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 |
|
|
|
|
Jorgen Horstink, |
|
|
Jorunn Danielsen Newth, |
|
|
Joseph Kesselman, |
|
|
Joseph Pecoraro, |
|
|
Josh Aas, |
|
|
Josh Levenberg, |
|
|
Joshua Randall, |
|
@@ -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"> |
|
|
|
|
Jorgen Horstink, |
|
|
Jorunn Danielsen Newth, |
|
|
Joseph Kesselman, |
|
|
Joseph Pecoraro, |
|
|
Josh Aas, |
|
|
Josh Levenberg, |
|
|
Joshua Randall, |