- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 11 May 2009 10:29:17 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv7319
Modified Files:
Overview.html
Log Message:
markup errors (whatwg r3085)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2242
retrieving revision 1.2243
diff -u -d -r1.2242 -r1.2243
--- Overview.html 11 May 2009 10:21:55 -0000 1.2242
+++ Overview.html 11 May 2009 10:29:14 -0000 1.2243
@@ -36493,9 +36493,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><p>It's also possible to get a list of all the <a href="#property-names">property
+ </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
attribute.<div class="example">
@@ -36504,7 +36508,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>
@@ -36519,7 +36534,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>
Received on Monday, 11 May 2009 10:29:32 UTC