[html5] r1610 - /

whatwg at whatwg.org whatwg at whatwg.org
Wed May 14 00:30:35 PDT 2008


Author: ianh
Date: 2008-05-14 00:30:34 -0700 (Wed, 14 May 2008)
New Revision: 1610

Modified:
   index
   source
Log:
[] (0) Support language=javascript1.1 to 1.3 as being regular old javascript.

Modified: index
===================================================================
--- index	2008-05-14 07:22:46 UTC (rev 1609)
+++ index	2008-05-14 07:30:34 UTC (rev 1610)
@@ -22698,12 +22698,27 @@
      of that attribute.</p>
 
     <p>Otherwise, the element has 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="#script0">script</a></code> element be the concatenation of the
-     string "<code title="">text/</code>" followed by the value of the <code
-     title=attr-script-language>language</code> attribute.</p>
+     title=attr-script-language>language</code> attribute; apply the rules
+     given for the first matching condition in the following list:</p>
 
+    <dl>
+     <dt>If the value of the <code title=attr-script-language>language</code>
+      attribute is a case-insensitive<!-- XXX ASCII --> match for one of:
+      "<code title="">javascript1.1</code>", "<code
+      title="">javascript1.2</code>", "<code title="">javascript1.3</code>"
+
+     <dd>Let <var><a href="#the-scripts">the script's type</a></var> for this
+      <code><a href="#script0">script</a></code> element be "<code
+      title="">text/javascript</code>".
+
+     <dt>Otherwise
+
+     <dd>Let <var><a href="#the-scripts">the script's type</a></var> for this
+      <code><a href="#script0">script</a></code> element be the concatenation
+      of the string "<code title="">text/</code>" followed by the value of
+      the <code title=attr-script-language>language</code> attribute.
+    </dl>
+
    <li>
     <p>If the <code><a href="#script0">script</a></code> element has a <code
      title=attr-script-charset><a href="#charset2">charset</a></code>

Modified: source
===================================================================
--- source	2008-05-14 07:22:46 UTC (rev 1609)
+++ source	2008-05-14 07:30:34 UTC (rev 1610)
@@ -20536,12 +20536,31 @@
     value of that attribute.</p>
 
     <p>Otherwise, the element has a <code
-    title="attr-script-language">language</code> attribute; let
-    <var>the script's type</var> for this <code>script</code> element
-    be the concatenation of the string "<code title="">text/</code>"
-    followed by the value of the <code
-    title="attr-script-language">language</code> attribute.</p>
+    title="attr-script-language">language</code> attribute; apply the
+    rules given for the first matching condition in the following
+    list:</p>
 
+    <dl>
+
+     <dt>If the value of the <code
+     title="attr-script-language">language</code> attribute is a
+     case-insensitive<!-- XXX ASCII --> match for one of: "<code
+     title="">javascript1.1</code>", "<code
+     title="">javascript1.2</code>", "<code
+     title="">javascript1.3</code>"</dt>
+
+     <dd>Let <var>the script's type</var> for this <code>script</code>
+     element be "<code title="">text/javascript</code>".</dd>
+
+     <dt>Otherwise</dt>
+
+     <dd>Let <var>the script's type</var> for this
+     <code>script</code> element be the concatenation of the string
+     "<code title="">text/</code>" followed by the value of the <code
+     title="attr-script-language">language</code> attribute.</dd>
+
+    </dl>
+
    </li>
 
    <li>




More information about the Commit-Watchers mailing list