Fixes #611.
This commit is contained in:
parent
86601b1153
commit
0d72ca395f
3
regression_testing/cases/github-cases/case-611a.conf
Normal file
3
regression_testing/cases/github-cases/case-611a.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
indent: auto
|
||||||
|
tidy-mark: no
|
||||||
|
clean: yes
|
7
regression_testing/cases/github-cases/case-611a@0.html
Normal file
7
regression_testing/cases/github-cases/case-611a@0.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<template><tr><td>1</td></tr></template>
|
||||||
|
|
||||||
|
|
||||||
|
<template><td>1</td></template>
|
||||||
|
|
||||||
|
|
||||||
|
<template><li>1</li></template>
|
3
regression_testing/cases/github-cases/case-611b.conf
Normal file
3
regression_testing/cases/github-cases/case-611b.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
indent: auto
|
||||||
|
tidy-mark: no
|
||||||
|
clean: yes
|
10
regression_testing/cases/github-cases/case-611b@0.html
Normal file
10
regression_testing/cases/github-cases/case-611b@0.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Issue #611-1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<template><tr><td>1</td></tr></template>
|
||||||
|
</body>
|
||||||
|
</html>
|
3
regression_testing/cases/github-cases/case-611c.conf
Normal file
3
regression_testing/cases/github-cases/case-611c.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
indent: auto
|
||||||
|
tidy-mark: no
|
||||||
|
clean: yes
|
39
regression_testing/cases/github-cases/case-611c@0.html
Normal file
39
regression_testing/cases/github-cases/case-611c@0.html
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Issue #611-2d</title>
|
||||||
|
<script>
|
||||||
|
// Data is hard-coded here, but could come from the server
|
||||||
|
var data = [
|
||||||
|
{ name: 'Pillar', color: 'Ticked Tabby', sex: 'Female (neutered)', legs: 3 },
|
||||||
|
{ name: 'Hedral', color: 'Tuxedo', sex: 'Male (neutered)', legs: 4 },
|
||||||
|
];
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name <th>Color <th>Sex <th>Legs
|
||||||
|
<tbody>
|
||||||
|
<template id="row">
|
||||||
|
<tr><td><td><td><td>
|
||||||
|
</template>
|
||||||
|
</table>
|
||||||
|
<script>
|
||||||
|
var template = document.querySelector('#row');
|
||||||
|
for (var i = 0; i < data.length; i += 1) {
|
||||||
|
var cat = data[i];
|
||||||
|
var clone = template.content.cloneNode(true);
|
||||||
|
var cells = clone.querySelectorAll('td');
|
||||||
|
cells[0].textContent = cat.name;
|
||||||
|
cells[1].textContent = cat.color;
|
||||||
|
cells[2].textContent = cat.sex;
|
||||||
|
cells[3].textContent = cat.legs;
|
||||||
|
template.parentNode.appendChild(clone);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -1417,7 +1417,7 @@ Node* TY_(ParseBlock)( TidyDocImpl* doc, Node *element, GetTokenMode mode )
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else /* things like list items */
|
else if ( ! nodeIsTEMPLATE( element ) )/* things like list items */
|
||||||
{
|
{
|
||||||
if (node->tag->model & CM_HEAD)
|
if (node->tag->model & CM_HEAD)
|
||||||
{
|
{
|
||||||
|
|
|
@ -463,6 +463,7 @@ TY_PRIVATE uint TY_(nodeHeaderLevel)( Node* node );
|
||||||
#define nodeIsDATALIST( node ) TagIsId( node, TidyTag_DATALIST )
|
#define nodeIsDATALIST( node ) TagIsId( node, TidyTag_DATALIST )
|
||||||
#define nodeIsDATA( node ) TagIsId( node, TidyTag_DATA )
|
#define nodeIsDATA( node ) TagIsId( node, TidyTag_DATA )
|
||||||
#define nodeIsMATHML( node ) TagIsId( node, TidyTag_MATHML ) /* #130 MathML attr and entity fix! */
|
#define nodeIsMATHML( node ) TagIsId( node, TidyTag_MATHML ) /* #130 MathML attr and entity fix! */
|
||||||
|
#define nodeIsTEMPLATE( node ) TagIsId( node, TidyTag_TEMPLATE )
|
||||||
|
|
||||||
/* NOT in HTML 5 */
|
/* NOT in HTML 5 */
|
||||||
#define nodeIsACRONYM( node ) TagIsId( node, TidyTag_ACRONYM )
|
#define nodeIsACRONYM( node ) TagIsId( node, TidyTag_ACRONYM )
|
||||||
|
|
Loading…
Reference in a new issue