[html5] r2072 - [giow] (2) Change handling of document.write()'s second argument to be safer. (S [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Aug 14 13:32:42 PDT 2008


Author: ianh
Date: 2008-08-14 13:32:41 -0700 (Thu, 14 Aug 2008)
New Revision: 2072

Modified:
   index
   source
Log:
[giow] (2) Change handling of document.write()'s second argument to be safer. (Subject: type parameter of Document.open) (credit: bz)

/home/ianh/svn/webapps/hooks/commit-email.pl: `/usr/bin/svnlook diff /home/ianh/svn/webapps -r 2072' failed with this output:
Modified: index
===================================================================
--- index	2008-08-13 01:40:56 UTC (rev 2071)
+++ index	2008-08-14 20:32:41 UTC (rev 2072)
@@ -28,7 +28,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 13 August
+   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 14 August
     2008</h2>
 
    <p>You can take part in this work. <a
@@ -8896,10 +8896,18 @@
     documents">HTML document</a> (it might already be so-marked).
 
    <li> <!-- text/plain handling -->
-    <p>If <var title="">type</var> is an <a href="#ascii">ASCII
-     case-insensitive</a> match for the stirng "<code>text/plain</code>",
-     then act as if the tokeniser had emitted a start tag token with the tag
-     name "pre", then set the <a href="#html-0">HTML parser</a>'s <a
+    <p>If the <var title="">type</var> string contains a U+003B SEMICOLON (;)
+     character, remove the first such character and all characters from it up
+     to the end of the string.</p>
+
+    <p>Strip all leading and trailing <a href="#space" title="space
+     character">space characters</a> from <var title="">type</var>.</p>
+
+    <p>If <var title="">type</var> is <em>not</em> now an <a
+     href="#ascii">ASCII case-insensitive</a> match for the string
+     "<code>text/html</code>", then act as if the tokeniser had emitted a
+     start tag token with the tag name "pre", then set the <a
+     href="#html-0">HTML parser</a>'s <a
      href="#tokenization0">tokenization</a> stage's <a
      href="#content4">content model flag</a> to <em>PLAINTEXT</em>.</p>
 

Modified: source
===================================================================



More information about the Commit-Watchers mailing list