Skip to content

Commit

Permalink
[e] (0) make this example script more resilient
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22516
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8025 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 3, 2013
1 parent 859a7da commit 815f6fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion complete.html
Expand Up @@ -15594,7 +15594,7 @@ <h4 id=the-template-element><span class=secno>4.3.3 </span>The <dfn><code>templa
&lt;/table&gt;
&lt;script&gt;
var template = document.querySelector('#row');
for (var i in data) {
for (var i = 0; i &lt; data.length; i += 1) {
var cat = data[i];
var clone = template.content.cloneNode(true);
var cells = clone.querySelectorAll('td');
Expand Down
2 changes: 1 addition & 1 deletion index
Expand Up @@ -15594,7 +15594,7 @@ not-slash = %x0000-002E / %x0030-10FFFF
&lt;/table&gt;
&lt;script&gt;
var template = document.querySelector('#row');
for (var i in data) {
for (var i = 0; i &lt; data.length; i += 1) {
var cat = data[i];
var clone = template.content.cloneNode(true);
var cells = clone.querySelectorAll('td');
Expand Down
2 changes: 1 addition & 1 deletion source
Expand Up @@ -16231,7 +16231,7 @@ not-slash = %x0000-002E / %x0030-10FFFF
&lt;/table>
&lt;script>
var template = document.querySelector('#row');
for (var i in data) {
for (var i = 0; i &lt; data.length; i += 1) {
var cat = data[i];
var clone = template.content.cloneNode(true);
var cells = clone.querySelectorAll('td');
Expand Down

0 comments on commit 815f6fe

Please sign in to comment.