[html5] r4938 - [giow] (2) Expand the hacks around <script for event> for extra compatibility. F [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Apr 1 15:16:10 PDT 2010
Author: ianh
Date: 2010-04-01 15:16:09 -0700 (Thu, 01 Apr 2010)
New Revision: 4938
Modified:
complete.html
index
source
Log:
[giow] (2) Expand the hacks around <script for event> for extra compatibility.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7851
Modified: complete.html
===================================================================
--- complete.html 2010-04-01 22:03:02 UTC (rev 4937)
+++ complete.html 2010-04-01 22:16:09 UTC (rev 4938)
@@ -3378,6 +3378,10 @@
string, the user agent must remove any U+000A LINE FEED (LF) and
U+000D CARRIAGE RETURN (CR) characters from that string.</p>
+ <p>When a user agent is to <dfn id=strip-leading-and-trailing-whitespace>strip leading and trailing
+ whitespace</dfn> from a string, the user agent must remove all <a href=#space-character title="space character">space characters</a> that are at the
+ start or end of the string.</p>
+
<p>The <dfn id=code-point-length>code-point length</dfn> of a string is the number of
Unicode code points in that string.</p>
@@ -13442,12 +13446,26 @@
<li id=script-processing-for>
- <p>If the <code><a href=#script>script</a></code> element has a <code title=attr-script-for><a href=#attr-script-for>for</a></code> attribute, then the user agent
- must abort these steps at this point. The script is not
- executed.</p>
+ <p>If the <code><a href=#script>script</a></code> element has an <code title=attr-script-event><a href=#attr-script-event>event</a></code> attribute and a <code title=attr-script-for><a href=#attr-script-for>for</a></code> attribute, then run these
+ substeps:</p>
- </li>
+ <ol><li><p>Let <var title="">for</var> be the value of the <code title=attr-script-for><a href=#attr-script-for>for</a></code> attribute.</li>
+ <li><p>Let <var title="">event</var> be the value of the <code title=attr-script-event><a href=#attr-script-event>event</a></code> attribute.</li>
+
+ <li><p><a href=#strip-leading-and-trailing-whitespace>Strip leading and trailing whitespace</a> from
+ <var title="">event</var> and <var title="">for</var>.</li>
+
+ <li><p>If <var title="">for</var> is not an <a href=#ascii-case-insensitive>ASCII
+ case-insensitive</a> match for the string "<code title="">window</code>", then the user agent must abort these
+ steps at this point. The script is not executed.</li>
+
+ <li><p>If <var title="">event</var> is not an <a href=#ascii-case-insensitive>ASCII
+ case-insensitive</a> match for either the string "<code title="">onload</code>" or the string "<code title="">onload()</code>", then the user agent must abort these
+ steps at this point. The script is not executed.</li>
+
+ </ol></li>
+
<li id=script-processing-noscript>
<p>If <a href=#concept-n-noscript title=concept-n-noscript>scripting is
Modified: index
===================================================================
--- index 2010-04-01 22:03:02 UTC (rev 4937)
+++ index 2010-04-01 22:16:09 UTC (rev 4938)
@@ -3276,6 +3276,10 @@
string, the user agent must remove any U+000A LINE FEED (LF) and
U+000D CARRIAGE RETURN (CR) characters from that string.</p>
+ <p>When a user agent is to <dfn id=strip-leading-and-trailing-whitespace>strip leading and trailing
+ whitespace</dfn> from a string, the user agent must remove all <a href=#space-character title="space character">space characters</a> that are at the
+ start or end of the string.</p>
+
<p>The <dfn id=code-point-length>code-point length</dfn> of a string is the number of
Unicode code points in that string.</p>
@@ -13340,12 +13344,26 @@
<li id=script-processing-for>
- <p>If the <code><a href=#script>script</a></code> element has a <code title=attr-script-for><a href=#attr-script-for>for</a></code> attribute, then the user agent
- must abort these steps at this point. The script is not
- executed.</p>
+ <p>If the <code><a href=#script>script</a></code> element has an <code title=attr-script-event><a href=#attr-script-event>event</a></code> attribute and a <code title=attr-script-for><a href=#attr-script-for>for</a></code> attribute, then run these
+ substeps:</p>
- </li>
+ <ol><li><p>Let <var title="">for</var> be the value of the <code title=attr-script-for><a href=#attr-script-for>for</a></code> attribute.</li>
+ <li><p>Let <var title="">event</var> be the value of the <code title=attr-script-event><a href=#attr-script-event>event</a></code> attribute.</li>
+
+ <li><p><a href=#strip-leading-and-trailing-whitespace>Strip leading and trailing whitespace</a> from
+ <var title="">event</var> and <var title="">for</var>.</li>
+
+ <li><p>If <var title="">for</var> is not an <a href=#ascii-case-insensitive>ASCII
+ case-insensitive</a> match for the string "<code title="">window</code>", then the user agent must abort these
+ steps at this point. The script is not executed.</li>
+
+ <li><p>If <var title="">event</var> is not an <a href=#ascii-case-insensitive>ASCII
+ case-insensitive</a> match for either the string "<code title="">onload</code>" or the string "<code title="">onload()</code>", then the user agent must abort these
+ steps at this point. The script is not executed.</li>
+
+ </ol></li>
+
<li id=script-processing-noscript>
<p>If <a href=#concept-n-noscript title=concept-n-noscript>scripting is
Modified: source
===================================================================
--- source 2010-04-01 22:03:02 UTC (rev 4937)
+++ source 2010-04-01 22:16:09 UTC (rev 4938)
@@ -2313,6 +2313,11 @@
string, the user agent must remove any U+000A LINE FEED (LF) and
U+000D CARRIAGE RETURN (CR) characters from that string.</p>
+ <p>When a user agent is to <dfn>strip leading and trailing
+ whitespace</dfn> from a string, the user agent must remove all <span
+ title="space character">space characters</span> that are at the
+ start or end of the string.</p>
+
<p>The <dfn>code-point length</dfn> of a string is the number of
Unicode code points in that string.</p>
@@ -14099,11 +14104,35 @@
<li id="script-processing-for">
- <p>If the <code>script</code> element has a <code
- title="attr-script-for">for</code> attribute, then the user agent
- must abort these steps at this point. The script is not
- executed.</p>
+ <p>If the <code>script</code> element has an <code
+ title="attr-script-event">event</code> attribute and a <code
+ title="attr-script-for">for</code> attribute, then run these
+ substeps:</p>
+ <ol>
+
+ <li><p>Let <var title="">for</var> be the value of the <code
+ title="attr-script-for">for</code> attribute.</p></li>
+
+ <li><p>Let <var title="">event</var> be the value of the <code
+ title="attr-script-event">event</code> attribute.</p></li>
+
+ <li><p><span>Strip leading and trailing whitespace</span> from
+ <var title="">event</var> and <var title="">for</var>.</p></li>
+
+ <li><p>If <var title="">for</var> is not an <span>ASCII
+ case-insensitive</span> match for the string "<code
+ title="">window</code>", then the user agent must abort these
+ steps at this point. The script is not executed.</p></li>
+
+ <li><p>If <var title="">event</var> is not an <span>ASCII
+ case-insensitive</span> match for either the string "<code
+ title="">onload</code>" or the string "<code
+ title="">onload()</code>", then the user agent must abort these
+ steps at this point. The script is not executed.</p></li>
+
+ </ol>
+
</li>
<li id="script-processing-noscript">
More information about the Commit-Watchers
mailing list