HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/4141

File a bug

SVNBugCommentTime (UTC)
4141Fix scripted examples for microdata2009-10-14 12:01
Index: source
===================================================================
--- source	(revision 4140)
+++ source	(revision 4141)
@@ -49525,12 +49525,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);

|