hixie: Fix scripted examples for microdata (whatwg r4141)

hixie: Fix scripted examples for microdata (whatwg r4141)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3289&r2=1.3290&f=h
http://html5.org/tools/web-apps-tracker?from=4140&to=4141

===================================================================
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:50:34 UTC