mozilla

Revision 49980 of Optimizing Your Pages for Speculative Parsing

  • Revision slug: Talk:HTML/Optimizing_Your_Pages_for_Speculative_Parsing
  • Revision title: Optimizing Your Pages for Speculative Parsing
  • Revision id: 49980
  • Created:
  • Creator: aceman-bugzilla
  • Is current revision? No
  • Comment 17 words added

Revision Content

I note this is a Draft.

I find it odd that the same code fragment is given as both a good and a bad example.

 

<script>document.write("<div></div>");</script> is OK.

<script>document.write("<div></div");</script> is bad.

Notice it is not the same! The is a > missing in the second example.

Revision Source

<p>I note this is a Draft.</p>
<p>I find it odd that the same code fragment is given as both a good and a bad example.</p>
<p> </p>
<blockquote> <p><code>&lt;script&gt;document.write("&lt;div&gt;&lt;/div&gt;");&lt;/script&gt;</code> is OK.</p> <p><code>&lt;script&gt;document.write("&lt;div&gt;&lt;/div");&lt;/script&gt;</code> is bad.</p>
</blockquote> Notice it is not the same! The is a &gt; missing in the second example.
Revert to this revision