W3C home > Mailing lists > Public > public-html-commits@w3.org > May 2009

html5/spec Overview.html,1.2239,1.2240

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 11 May 2009 08:46:50 +0000
To: public-html-commits@w3.org
Message-Id: <E1M3R9u-0000Az-Sh@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv659

Modified Files:
	Overview.html 
Log Message:
Make the 'alternate stylesheet' keyword uppercase in RDF to prevent people from being able to set it explicitly. (whatwg r3082)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2239
retrieving revision 1.2240
diff -u -d -r1.2239 -r1.2240
--- Overview.html	11 May 2009 08:18:25 -0000	1.2239
+++ Overview.html	11 May 2009 08:46:42 -0000	1.2240
@@ -36438,14 +36438,19 @@
 
    <pre>function getItems(type) {
   var result = [];
-  for (var i = 0; i 
+  for (var i = 0; i &lt; 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><!-- XXX ... --><h3 id="encoding-microdata"><span class="secno">5.2 </span>Encoding microdata</h3><h4 id="the-microdata-model"><span class="secno">5.2.1 </span>The microdata model</h4><p>The microdata model consists of groups of name-value pairs known
+  </div><!-- XXX ... --><h3 id="encoding-microdata"><span class="secno">5.2 </span>Encoding microdata</h3><h4 id="the-microdata-model"><span class="secno">5.2.1 </span>The microdata model</h4><p>The microdata model consists of groups of name-value pairs known
   as <dfn id="concept-item" title="concept-item">items</dfn>.<p>Each group has zero or more types, each name has one or more
   values, and each value is either a string or another group of
   name-value pairs.<h4 id="items:-the-item-attribute"><span class="secno">5.2.2 </span>Items: the <dfn title="attr-item"><code>item</code></dfn> attribute</h4><p>Every <a href="#html-elements" title="HTML elements">HTML element</a> may have an
@@ -36777,7 +36782,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>
 
Received on Monday, 11 May 2009 08:47:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 11 May 2009 08:47:01 GMT