Skip to content
Permalink
Browse files

[e] (0) Fix scripted examples for microdata

git-svn-id: http://svn.whatwg.org/webapps@4141 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Oct 14, 2009
1 parent 50b0643 commit ce1170fbaffee8b034aa660a27203541b1dfbe66
Showing with 12 additions and 9 deletions.
  1. +4 −3 complete.html
  2. +4 −3 index
  3. +4 −3 source
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);
7 index
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);
7 source
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);

0 comments on commit ce1170f

Please sign in to comment.
You can’t perform that action at this time.