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

html5/spec Overview.html,1.3289,1.3290

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 14 Oct 2009 11:49:57 +0000
To: public-html-commits@w3.org
Message-Id: <E1My2Mf-00087f-Le@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv31209

Modified Files:
	Overview.html 
Log Message:
Fix scripted examples for microdata (whatwg r4141)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3289
retrieving revision 1.3290
diff -u -d -r1.3289 -r1.3290
--- Overview.html	14 Oct 2009 11:24:12 -0000	1.3289
+++ Overview.html	14 Oct 2009 11:49:54 -0000	1.3290
@@ -39634,12 +39634,13 @@
    item.</p>
 
    <pre>var outer = document.createElement('ul');
-for (var item = 0; item &lt; document.items.length; item += 1) {
+var items = document.getItems();
+for (var item = 0; item &lt; items.length; item += 1) {
   var itemLi = document.createElement('li');
   var inner = document.createElement('ul');
-  for (var name = 0; name &lt; document.items[item].names.length; name += 1) {
+  for (var name = 0; name &lt; items[item].properties.names.length; name += 1) {
     var propLi = document.createElement('li');
-    propLi.appendChild(document.createTextNode(document.items[item].names[name]));
+    propLi.appendChild(document.createTextNode(items[item].properties.names[name]));
     inner.appendChild(propLi);
   }
   itemLi.appendChild(inner);
Received on Wednesday, 14 October 2009 11:49:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 14 October 2009 11:49:59 GMT