Skip to content

Commit

Permalink
[e] (0) Make document.readyState explicitly an enum, not that that ha…
Browse files Browse the repository at this point in the history
…s any real effect.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20013
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@7781 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 29, 2013
1 parent 006d3bf commit 0fbdead
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 5 additions & 3 deletions complete.html
Expand Up @@ -248,7 +248,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 28 March 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 29 March 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -8316,15 +8316,17 @@ <h3 id=documents><span class=secno>3.1 </span>Documents</h3>
<p>The DOM specification defines a <code title="DOM Document"><a href=#dom-document>Document</a></code> interface, which
this specification extends significantly:</p>

<pre class=idl>[OverrideBuiltins]
<pre class=idl>enum <dfn id=documentreadystate>DocumentReadyState</dfn> { "loading", "interactive", "complete" };

[OverrideBuiltins]
partial /*sealed*/ interface <dfn id=document>Document</dfn> {
// <a href=#resource-metadata-management>resource metadata management</a>
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>, Unforgeable] readonly attribute <a href=#location>Location</a>? <a href=#dom-document-location title=dom-document-location>location</a>;
attribute DOMString <a href=#dom-document-domain title=dom-document-domain>domain</a>;
readonly attribute DOMString <a href=#dom-document-referrer title=dom-document-referrer>referrer</a>;
attribute DOMString <a href=#dom-document-cookie title=dom-document-cookie>cookie</a>;
readonly attribute DOMString <a href=#dom-document-lastmodified title=dom-document-lastModified>lastModified</a>;
readonly attribute DOMString <a href=#dom-document-readystate title=dom-document-readyState>readyState</a>;
readonly attribute <a href=#documentreadystate>DocumentReadyState</a> <a href=#dom-document-readystate title=dom-document-readyState>readyState</a>;

// <a href=#dom-tree-accessors>DOM tree accessors</a>
<a href=#dom-document-nameditem title=dom-document-namedItem>getter</a> object (DOMString name);
Expand Down
8 changes: 5 additions & 3 deletions index
Expand Up @@ -248,7 +248,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 28 March 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 29 March 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -8316,15 +8316,17 @@ interface <dfn id=transferable>Transferable</dfn> { };</pre>
<p>The DOM specification defines a <code title="DOM Document"><a href=#dom-document>Document</a></code> interface, which
this specification extends significantly:</p>

<pre class=idl>[OverrideBuiltins]
<pre class=idl>enum <dfn id=documentreadystate>DocumentReadyState</dfn> { "loading", "interactive", "complete" };

[OverrideBuiltins]
partial /*sealed*/ interface <dfn id=document>Document</dfn> {
// <a href=#resource-metadata-management>resource metadata management</a>
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>, Unforgeable] readonly attribute <a href=#location>Location</a>? <a href=#dom-document-location title=dom-document-location>location</a>;
attribute DOMString <a href=#dom-document-domain title=dom-document-domain>domain</a>;
readonly attribute DOMString <a href=#dom-document-referrer title=dom-document-referrer>referrer</a>;
attribute DOMString <a href=#dom-document-cookie title=dom-document-cookie>cookie</a>;
readonly attribute DOMString <a href=#dom-document-lastmodified title=dom-document-lastModified>lastModified</a>;
readonly attribute DOMString <a href=#dom-document-readystate title=dom-document-readyState>readyState</a>;
readonly attribute <a href=#documentreadystate>DocumentReadyState</a> <a href=#dom-document-readystate title=dom-document-readyState>readyState</a>;

// <a href=#dom-tree-accessors>DOM tree accessors</a>
<a href=#dom-document-nameditem title=dom-document-namedItem>getter</a> object (DOMString name);
Expand Down
6 changes: 4 additions & 2 deletions source
Expand Up @@ -8027,15 +8027,17 @@ interface <dfn>Transferable</dfn> { };</pre>
<p>The DOM specification defines a <code title="DOM Document">Document</code> interface, which
this specification extends significantly:</p>

<pre class="idl">[OverrideBuiltins]
<pre class="idl">enum <dfn>DocumentReadyState</dfn> { "loading", "interactive", "complete" };

[OverrideBuiltins]
partial /*sealed*/ interface <dfn>Document</dfn> {
// <span>resource metadata management</span>
[PutForwards=<span title="dom-location-href">href</span>, Unforgeable] readonly attribute <span>Location</span>? <span title="dom-document-location">location</span>;
attribute DOMString <span title="dom-document-domain">domain</span>;
readonly attribute DOMString <span title="dom-document-referrer">referrer</span>;
attribute DOMString <span title="dom-document-cookie">cookie</span>;
readonly attribute DOMString <span title="dom-document-lastModified">lastModified</span>;
readonly attribute DOMString <span title="dom-document-readyState">readyState</span>;
readonly attribute <span>DocumentReadyState</span> <span title="dom-document-readyState">readyState</span>;

// <span>DOM tree accessors</span>
<span title="dom-document-namedItem">getter</span> object (DOMString name);
Expand Down

0 comments on commit 0fbdead

Please sign in to comment.