[html5] r3085 - [e] (0) markup errors
whatwg at whatwg.org
whatwg at whatwg.org
Mon May 11 03:30:18 PDT 2009
Author: ianh
Date: 2009-05-11 03:30:17 -0700 (Mon, 11 May 2009)
New Revision: 3085
Modified:
index
source
Log:
[e] (0) markup errors
Modified: index
===================================================================
--- index 2009-05-11 10:22:59 UTC (rev 3084)
+++ index 2009-05-11 10:30:17 UTC (rev 3085)
@@ -40957,9 +40957,13 @@
result = 'Color unknown.';
} else if (colors instanceof PropertyNodeList) {
result = 'Colors:';
- for (var i = 0; i
+ for (var i = 0; i < colors.content.length; i += 1)
+ result += ' ' + colors.content[i];
+} else {
+ result = 'Color: ' + colors.content;
+}</pre>
- </pre></div>
+ </div>
<p>It's also possible to get a list of all the <a href=#property-names>property
names</a> using the object's <code title=dom-HTMLPropertyCollection-names><a href=#dom-htmlpropertycollection-names>names</a></code> DOM
@@ -40972,7 +40976,18 @@
item./p>
<pre>var outer = document.createElement('ul');
-for (var item = 0; item
+for (var item = 0; item < document.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) {
+ var propLi = document.createElement('li');
+ propLi.appendChild(document.createTextNode(document.items[item].names[name]));
+ inner.appendChild(propLi);
+ }
+ itemLi.appendChild(inner);
+ outer.appendChild(itemLi);
+}
+document.body.appendChild(outer);</pre>
<p>If faced with the following from an earlier example:</p>
@@ -40987,7 +41002,7 @@
<p>...it would result in the following output:</p>
- </pre><ul><li>
+ <ul><li>
<ul><li>org.example.name</li>
<li>com.example.fn</li>
<li>org.example.desc</li>
Modified: source
===================================================================
--- source 2009-05-11 10:22:59 UTC (rev 3084)
+++ source 2009-05-11 10:30:17 UTC (rev 3085)
@@ -46202,7 +46202,7 @@
result = 'Color unknown.';
} else if (colors instanceof PropertyNodeList) {
result = 'Colors:';
- for (var i = 0; i < colors.content.length; i += 1)
+ for (var i = 0; i < colors.content.length; i += 1)
result += ' ' + colors.content[i];
} else {
result = 'Color: ' + colors.content;
@@ -46222,10 +46222,10 @@
item./p>
<pre>var outer = document.createElement('ul');
-for (var item = 0; item < document.items.length; item += 1) {
+for (var item = 0; item < document.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 < document.items[item].names.length; name += 1) {
var propLi = document.createElement('li');
propLi.appendChild(document.createTextNode(document.items[item].names[name]));
inner.appendChild(propLi);
More information about the Commit-Watchers
mailing list