[html5] r8025 - [e] (0) make this example script more resilient Fixing https://www.w3.org/Bugs/P [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Jul 3 12:41:27 PDT 2013
Author: ianh
Date: 2013-07-03 12:41:26 -0700 (Wed, 03 Jul 2013)
New Revision: 8025
Modified:
complete.html
index
source
Log:
[e] (0) make this example script more resilient
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22516
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2013-07-03 19:39:18 UTC (rev 8024)
+++ complete.html 2013-07-03 19:41:26 UTC (rev 8025)
@@ -15594,7 +15594,7 @@
</table>
<script>
var template = document.querySelector('#row');
- for (var i in data) {
+ for (var i = 0; i < data.length; i += 1) {
var cat = data[i];
var clone = template.content.cloneNode(true);
var cells = clone.querySelectorAll('td');
Modified: index
===================================================================
--- index 2013-07-03 19:39:18 UTC (rev 8024)
+++ index 2013-07-03 19:41:26 UTC (rev 8025)
@@ -15594,7 +15594,7 @@
</table>
<script>
var template = document.querySelector('#row');
- for (var i in data) {
+ for (var i = 0; i < data.length; i += 1) {
var cat = data[i];
var clone = template.content.cloneNode(true);
var cells = clone.querySelectorAll('td');
Modified: source
===================================================================
--- source 2013-07-03 19:39:18 UTC (rev 8024)
+++ source 2013-07-03 19:41:26 UTC (rev 8025)
@@ -16231,7 +16231,7 @@
</table>
<script>
var template = document.querySelector('#row');
- for (var i in data) {
+ for (var i = 0; i < data.length; i += 1) {
var cat = data[i];
var clone = template.content.cloneNode(true);
var cells = clone.querySelectorAll('td');
More information about the Commit-Watchers
mailing list