[html5] r3082 - [e] (0) Make the 'alternate stylesheet' keyword uppercase in RDF to prevent peop [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon May 11 01:47:44 PDT 2009


Author: ianh
Date: 2009-05-11 01:47:43 -0700 (Mon, 11 May 2009)
New Revision: 3082

Modified:
   index
   source
Log:
[e] (0) Make the 'alternate stylesheet' keyword uppercase in RDF to prevent people from being able to set it explicitly.

Modified: index
===================================================================
--- index	2009-05-11 08:19:28 UTC (rev 3081)
+++ index	2009-05-11 08:47:43 UTC (rev 3082)
@@ -40894,14 +40894,19 @@
 
    <pre>function getItems(type) {
   var result = [];
-  for (var i = 0; i 
+  for (var i = 0; i < document.items.length; i += 1) {
+    if (document.items[i].item.has(type))
+      result.push(document.items[i]);
+  }
+  return result;
+}</pre>
 
    <p>This function can be used to get all the "com.example.feline"
    items as follows:</p>
 
    <pre>var cats = getItems("com.example.feline");</pre>
 
-  </pre></div>
+  </div>
 
   <!-- XXX ... -->
 
@@ -41306,7 +41311,7 @@
 
      <li><p>If <var title="">list of tokens</var> contains both the
      tokens <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> and <code title=rel-stylesheet><a href=#link-type-stylesheet>stylesheet</a></code>, then remove them both
-     and replace them with the single token <code title="">alternate-stylesheet</code>.</li>
+     and replace them with the single (uppercase) token <code title="">ALTERNATE-STYLESHEET</code>.</li>
 
      <li>
 

Modified: source
===================================================================
--- source	2009-05-11 08:19:28 UTC (rev 3081)
+++ source	2009-05-11 08:47:43 UTC (rev 3082)
@@ -46135,7 +46135,7 @@
 
    <pre>function getItems(type) {
   var result = [];
-  for (var i = 0; i < document.items.length; i += 1) {
+  for (var i = 0; i < document.items.length; i += 1) {
     if (document.items[i].item.has(type))
       result.push(document.items[i]);
   }
@@ -46656,8 +46656,8 @@
      <li><p>If <var title="">list of tokens</var> contains both the
      tokens <code title="rel-alternate">alternate</code> and <code
      title="rel-stylesheet">stylesheet</code>, then remove them both
-     and replace them with the single token <code
-     title="">alternate-stylesheet</code>.</p></li>
+     and replace them with the single (uppercase) token <code
+     title="">ALTERNATE-STYLESHEET</code>.</p></li>
 
      <li>
 




More information about the Commit-Watchers mailing list