Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) More tweaks to the text (including a comment that describes o…
…ne of the situations in question).

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=14275
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@6924 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 27, 2012
1 parent 8aa1111 commit 32ad403
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 8 deletions.
17 changes: 14 additions & 3 deletions complete.html
Expand Up @@ -240,7 +240,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 26 January 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 27 January 2012</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 @@ -13773,8 +13773,19 @@ <h4 id=document.write()><span class=secno>3.4.3 </span><code title=dom-document-
string written is the string "<code title="">&lt;plaintext&gt;</code>" or "<code title="">&lt;!--</code>"). In other cases, the call can clear the
current page first, as if <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> had been called.
In yet more cases, the method is simply ignored, or throws an
exception. <strong>For all these reasons, use of this method is
strongly discouraged.</strong></p>
exception. To make matters worse, the exact behavior of this
method can in some cases be dependent on network latency<!--

Namely, in the following case:

<script>
document.write('<link rel=stylesheet href=foo.css><script></script>x');
// at this point, whether the DOM contains an "x" or not depends on how quickly the foo.css file could be processed
</script>

-->, which can lead to failures that are very hard to debug.
<strong>For all these reasons, use of this method is strongly
discouraged.</strong></p>

<p>This method throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception
when invoked on <a href=#xml-documents>XML documents</a>.</p>
Expand Down
17 changes: 14 additions & 3 deletions index
Expand Up @@ -240,7 +240,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 26 January 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 27 January 2012</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 @@ -13773,8 +13773,19 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )
string written is the string "<code title="">&lt;plaintext&gt;</code>" or "<code title="">&lt;!--</code>"). In other cases, the call can clear the
current page first, as if <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> had been called.
In yet more cases, the method is simply ignored, or throws an
exception. <strong>For all these reasons, use of this method is
strongly discouraged.</strong></p>
exception. To make matters worse, the exact behavior of this
method can in some cases be dependent on network latency<!--

Namely, in the following case:

<script>
document.write('<link rel=stylesheet href=foo.css><script></script>x');
// at this point, whether the DOM contains an "x" or not depends on how quickly the foo.css file could be processed
</script>

-->, which can lead to failures that are very hard to debug.
<strong>For all these reasons, use of this method is strongly
discouraged.</strong></p>

<p>This method throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception
when invoked on <a href=#xml-documents>XML documents</a>.</p>
Expand Down
15 changes: 13 additions & 2 deletions source
Expand Up @@ -14535,8 +14535,19 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )
current page first, as if <code
title="dom-document-open">document.open()</code> had been called.
In yet more cases, the method is simply ignored, or throws an
exception. <strong>For all these reasons, use of this method is
strongly discouraged.</strong></p>
exception. To make matters worse, the exact behavior of this
method can in some cases be dependent on network latency<!--

Namely, in the following case:

<script>
document.write('<link rel=stylesheet href=foo.css><script></script>x');
// at this point, whether the DOM contains an "x" or not depends on how quickly the foo.css file could be processed
</script>

-->, which can lead to failures that are very hard to debug.
<strong>For all these reasons, use of this method is strongly
discouraged.</strong></p>

<p>This method throws an <code>InvalidStateError</code> exception
when invoked on <span>XML documents</span>.</p>
Expand Down

0 comments on commit 32ad403

Please sign in to comment.