Skip to content

Commit 89d932f

Browse files
authored
Additional regression tests
Co-authored-by: Liam Newman <bitwiseman@gmail.com>
1 parent 0f6d751 commit 89d932f

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

test/data/html/tests.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,38 @@ exports.test_data = {
17561756
' </tr>',
17571757
'</table>'
17581758
]
1759+
}, {
1760+
comment: "Issue #2045 - {{#li}} helper inside a list item must not pop the HTML <li> from the tag stack",
1761+
input_: [
1762+
'<ul>',
1763+
'<li>',
1764+
'{{#li}}item{{/li}}',
1765+
'</li>',
1766+
'</ul>'
1767+
],
1768+
output: [
1769+
'<ul>',
1770+
' <li>',
1771+
' {{#li}}item{{/li}}',
1772+
' </li>',
1773+
'</ul>'
1774+
]
1775+
}, {
1776+
comment: "Issue #2045 - {{#option}} helper inside an option must not pop the HTML <option> from the tag stack",
1777+
input_: [
1778+
'<select>',
1779+
'<option>',
1780+
'{{#option}}text{{/option}}',
1781+
'</option>',
1782+
'</select>'
1783+
],
1784+
output: [
1785+
'<select>',
1786+
' <option>',
1787+
' {{#option}}text{{/option}}',
1788+
' </option>',
1789+
'</select>'
1790+
]
17591791
}
17601792
]
17611793
}, {

0 commit comments

Comments
 (0)