[html5] r4141 - [e] (0) Fix scripted examples for microdata

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 14 05:01:18 PDT 2009


Author: ianh
Date: 2009-10-14 05:01:17 -0700 (Wed, 14 Oct 2009)
New Revision: 4141

Modified:
   complete.html
   index
   source
Log:
[e] (0) Fix scripted examples for microdata

Modified: complete.html
===================================================================
--- complete.html	2009-10-14 11:35:35 UTC (rev 4140)
+++ complete.html	2009-10-14 12:01:17 UTC (rev 4141)
@@ -44506,12 +44506,13 @@
    item.</p>
 
    <pre>var outer = document.createElement('ul');
-for (var item = 0; item < document.items.length; item += 1) {
+var items = document.getItems();
+for (var item = 0; item < items.length; item += 1) {
   var itemLi = document.createElement('li');
   var inner = document.createElement('ul');
-  for (var name = 0; name < document.items[item].names.length; name += 1) {
+  for (var name = 0; name < 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);

Modified: index
===================================================================
--- index	2009-10-14 11:35:35 UTC (rev 4140)
+++ index	2009-10-14 12:01:17 UTC (rev 4141)
@@ -44335,12 +44335,13 @@
    item.</p>
 
    <pre>var outer = document.createElement('ul');
-for (var item = 0; item < document.items.length; item += 1) {
+var items = document.getItems();
+for (var item = 0; item < items.length; item += 1) {
   var itemLi = document.createElement('li');
   var inner = document.createElement('ul');
-  for (var name = 0; name < document.items[item].names.length; name += 1) {
+  for (var name = 0; name < 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);

Modified: source
===================================================================
--- source	2009-10-14 11:35:35 UTC (rev 4140)
+++ source	2009-10-14 12:01:17 UTC (rev 4141)
@@ -49525,12 +49525,13 @@
    item.</p>
 
    <pre>var outer = document.createElement('ul');
-for (var item = 0; item < document.items.length; item += 1) {
+var items = document.getItems();
+for (var item = 0; item < items.length; item += 1) {
   var itemLi = document.createElement('li');
   var inner = document.createElement('ul');
-  for (var name = 0; name < document.items[item].names.length; name += 1) {
+  for (var name = 0; name < 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);




More information about the Commit-Watchers mailing list