[html5] r2014 - [e] (0) Clarify the paragraph that defines how to handle type='' on <script>.

whatwg at whatwg.org whatwg at whatwg.org
Tue Aug 5 13:31:15 PDT 2008


Author: ianh
Date: 2008-08-05 13:31:14 -0700 (Tue, 05 Aug 2008)
New Revision: 2014

Modified:
   index
   source
Log:
[e] (0) Clarify the paragraph that defines how to handle type='' on <script>.

Modified: index
===================================================================
--- index	2008-08-05 12:19:24 UTC (rev 2013)
+++ index	2008-08-05 20:31:14 UTC (rev 2014)
@@ -26058,18 +26058,26 @@
 
   <ol>
    <li>
-    <p>If the <code><a href="#script1">script</a></code> element has a <code
-     title=attr-script-type><a href="#type11">type</a></code> attribute and
-     its value is the empty string, or if the <code><a
-     href="#script1">script</a></code> element has no <code
-     title=attr-script-type><a href="#type11">type</a></code> attribute but
-     it has a <code title=attr-script-language>language</code> attribute and
-     <em>that</em> attribute's value is the empty string, or if the <code><a
-     href="#script1">script</a></code> element has neither a <code
-     title=attr-script-type><a href="#type11">type</a></code> attribute nor a
-     <code title=attr-script-language>language</code> attribute, let <var><a
-     href="#the-scripts">the script's type</a></var> for this <code><a
-     href="#script1">script</a></code> element be "<code
+    <p>If either:</p>
+
+    <ul class=brief>
+     <li>the <code><a href="#script1">script</a></code> element has a <code
+      title=attr-script-type><a href="#type11">type</a></code> attribute and
+      its value is the empty string, or
+
+     <li>the <code><a href="#script1">script</a></code> element has no <code
+      title=attr-script-type><a href="#type11">type</a></code> attribute but
+      it has a <code title=attr-script-language>language</code> attribute and
+      <em>that</em> attribute's value is the empty string, or
+
+     <li>the <code><a href="#script1">script</a></code> element has neither a
+      <code title=attr-script-type><a href="#type11">type</a></code>
+      attribute nor a <code title=attr-script-language>language</code>
+      attribute, then
+    </ul>
+
+    <p>...let <var><a href="#the-scripts">the script's type</a></var> for
+     this <code><a href="#script1">script</a></code> element be "<code
      title="">text/javascript</code>".</p>
 
     <p>Otherwise, if the <code><a href="#script1">script</a></code> element

Modified: source
===================================================================
--- source	2008-08-05 12:19:24 UTC (rev 2013)
+++ source	2008-08-05 20:31:14 UTC (rev 2014)
@@ -23386,18 +23386,29 @@
 
    <li>
 
-    <p>If the <code>script</code> element has a <code
-    title="attr-script-type">type</code> attribute and its value is
-    the empty string, or if the <code>script</code> element has no
-    <code title="attr-script-type">type</code> attribute but it has a
-    <code title="attr-script-language">language</code> attribute and
-    <em>that</em> attribute's value is the empty string, or if the
-    <code>script</code> element has neither a <code
-    title="attr-script-type">type</code> attribute nor a <code
-    title="attr-script-language">language</code> attribute, let
-    <var>the script's type</var> for this <code>script</code> element
-    be "<code title="">text/javascript</code>".</p>
+    <p>If either:</p>
 
+    <ul class="brief">
+
+     <li>the <code>script</code> element has a <code
+     title="attr-script-type">type</code> attribute and its value is
+     the empty string, or</li>
+
+     <li>the <code>script</code> element has no <code
+     title="attr-script-type">type</code> attribute but it has a <code
+     title="attr-script-language">language</code> attribute and
+     <em>that</em> attribute's value is the empty string, or</li>
+
+     <li>the <code>script</code> element has neither a <code
+     title="attr-script-type">type</code> attribute nor a <code
+     title="attr-script-language">language</code> attribute, then</li>
+
+    </ul>
+
+    <p>...let <var>the script's type</var> for this
+    <code>script</code> element be "<code
+    title="">text/javascript</code>".</p>
+
     <p>Otherwise, if the <code>script</code> element has a <code
     title="attr-script-type">type</code> attribute, let <var>the
     script's type</var> for this <code>script</code> element be the




More information about the Commit-Watchers mailing list