- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 14 Aug 2008 20:33:15 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv3910
Modified Files:
Overview.html
Log Message:
Change handling of document.write()'s second argument to be safer. (Subject: type parameter of Document.open) (credit: bz) (whatwg r2072)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1246
retrieving revision 1.1247
diff -u -d -r1.1246 -r1.1247
--- Overview.html 13 Aug 2008 02:35:00 -0000 1.1246
+++ Overview.html 14 Aug 2008 20:33:12 -0000 1.1247
@@ -27,7 +27,7 @@
for HTML and XHTML</h2>
<h2 class="no-num no-toc" id=editors0><!-- "W3C Working Draft" -->
- Editor's Draft <!--ZZZ-->13 August 2008</h2>
+ Editor's Draft <!--ZZZ-->14 August 2008</h2>
<dl><!-- ZZZ: update the month/day
<dt>This Version:</dt>
@@ -199,7 +199,7 @@
<p>The W3C <a href="http://www.w3.org/html/wg/">HTML Working Group</a> is
the W3C working group responsible for this specification's progress along
- the W3C Recommendation track. <!--ZZZ:--> This specification is the 13
+ the W3C Recommendation track. <!--ZZZ:--> This specification is the 14
August 2008 <!--ZZZ "Working Draft"-->Editor's Draft. <!--:ZZZ--></p>
<!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST -->
<!-- relationship to other work (required) -->
@@ -8904,10 +8904,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>
Received on Thursday, 14 August 2008 20:33:49 UTC