hixie: Update the fragment parsing algorithm to handle <script> more theoretically properly. And mention a quicker implementation strategy. (whatwg r4457)

hixie: Update the fragment parsing algorithm to handle <script> more
theoretically properly. And mention a quicker implementation strategy.
(whatwg r4457)
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3556&r2=1.3557&f=h
http://html5.org/tools/web-apps-tracker?from=4456&to=4457
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3556
retrieving revision 1.3557
diff -u -d -r1.3556 -r1.3557
--- Overview.html 21 Dec 2009 22:26:54 -0000 1.3556
+++ Overview.html 4 Jan 2010 11:27:14 -0000 1.3557
@@ -260,7 +260,7 @@
 <h1>HTML5</h1>
 <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
 
- <h2 class="no-num no-toc" id="editor-s-draft-21-december-2009">Editor's Draft 21 December 2009</h2>
+ <h2 class="no-num no-toc" id="editor-s-draft-4-january-2010">Editor's Draft 4 January 2010</h2>
 <dl><dt>Latest Published Version:</dt>
 <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
 <dt>Latest Editor's Draft:</dt>
@@ -353,7 +353,7 @@
 specification's progress along the W3C Recommendation
 track.
 
- This specification is the 21 December 2009 Editor's Draft.
+ This specification is the 4 January 2010 Editor's Draft.
 </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href="http://www.whatwg.org/">WHATWG</a>. The two specifications are
 identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
 what was previously the HTML4, XHTML1, and DOM2 HTML
@@ -18838,7 +18838,7 @@
 &lt;/body&gt;
 &lt;/html&gt;</pre>
 
- </div><h4 id="video"><span class="secno">4.8.7 </span>The <dfn><code>video</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/9">ISSUE-9</a> (video-accessibility) and <a href="http://www.w3.org/html/wg/tracker/issues/10">ISSUE-10</a> (video-smil) block progress to Last Call</span><dl class="element"><dt>Categories</dt>
+ </div><h4 id="video"><span class="secno">4.8.7 </span>The <dfn><code>video</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/9">ISSUE-9</a> (video-accessibility) blocks progress to Last Call</span><dl class="element"><dt>Categories</dt>
 <dd><a href="#flow-content">Flow content</a>.</dd>
 <dd><a href="#phrasing-content">Phrasing content</a>.</dd>
 <dd><a href="#embedded-content">Embedded content</a>.</dd>
@@ -61887,13 +61887,18 @@
 <dd>Switch the tokenizer to the <a href="#rcdata-state">RCDATA state</a>.</dd>
 
 
- <dt>If it is a <code><a href="#the-style-element">style</a></code>, <code><a href="#script">script</a></code>,
- <code><a href="#xmp">xmp</a></code>, <code><a href="#the-iframe-element">iframe</a></code>, <code><a href="#noembed">noembed</a></code>, or
+ <dt>If it is a <code><a href="#the-style-element">style</a></code>, <code><a href="#xmp">xmp</a></code>,
+ <code><a href="#the-iframe-element">iframe</a></code>, <code><a href="#noembed">noembed</a></code>, or
 <code><a href="#noframes">noframes</a></code> element</dt>
 
 <dd>Switch the tokenizer to the <a href="#rawtext-state">RAWTEXT state</a>.</dd>
 
 
+ <dt>If it is a <code><a href="#script">script</a></code> element</dt>
+
+ <dd>Switch the tokenizer to the <a href="#script-data-state">script data state</a>.</dd>
+
+
 <dt>If it is a <code><a href="#the-noscript-element">noscript</a></code> element</dt>
 
 <dd>If the <a href="#scripting-flag">scripting flag</a> is enabled, switch the
@@ -61911,7 +61916,15 @@
 
 <dd>Leave the tokenizer in the <a href="#data-state">data state</a>.</dd>
 
- </dl></li>
+ </dl><p class="note">For performance reasons, an implementation that
+ uses the actual state machine described in this specification
+ directly could use the PLAINTEXT state instead of the RAWTEXT
+ and script data states where those are mentioned in the list
+ above. They are equivalent, since there is no <a href="#appropriate-end-tag-token">appropriate
+ end tag token</a> in the fragment case, but involve far fewer
+ state transitions.</p>
+
+ </li>
 
 <li>

Received on Monday, 4 January 2010 11:28:00 UTC

AltStyle によって変換されたページ (->オリジナル) /