Skip to content

Commit d057bcb

Browse files
authored
Merge pull request #990 from htacg/issue_611
Issue 611
2 parents 86601b1 + 8a45f44 commit d057bcb

File tree

14 files changed

+202
-1
lines changed

14 files changed

+202
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
indent: auto
2+
tidy-mark: no
3+
clean: yes
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template><tr><td>1</td></tr></template>
2+
3+
4+
<template><td>1</td></template>
5+
6+
7+
<template><li>1</li></template>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
indent: auto
2+
tidy-mark: no
3+
clean: yes
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Issue #611-1</title>
6+
</head>
7+
<body>
8+
<template><tr><td>1</td></tr></template>
9+
</body>
10+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
indent: auto
2+
tidy-mark: no
3+
clean: yes
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Issue #611-2d</title>
6+
<script>
7+
// Data is hard-coded here, but could come from the server
8+
var data = [
9+
{ name: 'Pillar', color: 'Ticked Tabby', sex: 'Female (neutered)', legs: 3 },
10+
{ name: 'Hedral', color: 'Tuxedo', sex: 'Male (neutered)', legs: 4 },
11+
];
12+
</script>
13+
</head>
14+
<body>
15+
<table>
16+
<thead>
17+
<tr>
18+
<th>Name <th>Color <th>Sex <th>Legs
19+
<tbody>
20+
<template id="row">
21+
<tr><td><td><td><td>
22+
</template>
23+
</table>
24+
<script>
25+
var template = document.querySelector('#row');
26+
for (var i = 0; i < data.length; i += 1) {
27+
var cat = data[i];
28+
var clone = template.content.cloneNode(true);
29+
var cells = clone.querySelectorAll('td');
30+
cells[0].textContent = cat.name;
31+
cells[1].textContent = cat.color;
32+
cells[2].textContent = cat.sex;
33+
cells[3].textContent = cat.legs;
34+
template.parentNode.appendChild(clone);
35+
}
36+
</script>
37+
</body>
38+
</html>
39+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<template>
5+
<tr>
6+
<td>1</td>
7+
</tr>
8+
</template>
9+
<template>
10+
<td>1</td>
11+
</template>
12+
<template>
13+
<li>1</li>
14+
</template>
15+
<title></title>
16+
</head>
17+
<body>
18+
</body>
19+
</html>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
2+
line 1 column 1 - Warning: inserting missing 'title' element
3+
Info: Document content looks like HTML5
4+
Tidy found 2 warnings and 0 errors!
5+
6+
About HTML Tidy: https://github.com/htacg/tidy-html5
7+
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
8+
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
9+
Latest HTML specification: https://html.spec.whatwg.org/multipage/
10+
Validate your HTML documents: https://validator.w3.org/nu/
11+
Lobby your company to join the W3C: https://www.w3.org/Consortium
12+
13+
Do you speak a language other than English, or a different variant of
14+
English? Consider helping us to localize HTML Tidy. For details please see
15+
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Issue #611-1</title>
6+
</head>
7+
<body>
8+
<template>
9+
<tr>
10+
<td>1</td>
11+
</tr>
12+
</template>
13+
</body>
14+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Info: Document content looks like HTML5
2+
No warnings or errors were found.
3+
4+
About HTML Tidy: https://github.com/htacg/tidy-html5
5+
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
6+
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
7+
Latest HTML specification: https://html.spec.whatwg.org/multipage/
8+
Validate your HTML documents: https://validator.w3.org/nu/
9+
Lobby your company to join the W3C: https://www.w3.org/Consortium
10+
11+
Do you speak a language other than English, or a different variant of
12+
English? Consider helping us to localize HTML Tidy. For details please see
13+
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md

0 commit comments

Comments
 (0)