Skip to content

Commit b2e92da

Browse files
author
William Chen
committed
Added tests for changes related to form pointer and template contents.
1 parent d3c2458 commit b2e92da

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

tree-construction/isindex.dat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,23 @@
4545
| <head>
4646
| <body>
4747
| <form>
48+
49+
#data
50+
<body><isindex><form>
51+
#errors
52+
6: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
53+
15: “isindex” seen.
54+
21: End of file seen and there were open elements.
55+
21: Unclosed element “form”.
56+
#document
57+
| <html>
58+
| <head>
59+
| <body>
60+
| <form>
61+
| <hr>
62+
| <label>
63+
| "This is a searchable index. Enter search keywords: "
64+
| <input>
65+
| name="isindex"
66+
| <hr>
67+
| <form>

tree-construction/template.dat

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,3 +1615,75 @@ eof table
16151615
| content
16161616
| <table>
16171617
| <script>
1618+
1619+
#data
1620+
<body><form><template><form>
1621+
#errors
1622+
#document
1623+
| <html>
1624+
| <head>
1625+
| <body>
1626+
| <form>
1627+
| <template>
1628+
| content
1629+
| <form>
1630+
1631+
#data
1632+
<body><template><table><form>
1633+
#errors
1634+
#document
1635+
| <html>
1636+
| <head>
1637+
| <body>
1638+
| <template>
1639+
| content
1640+
| <table>
1641+
1642+
#data
1643+
<body><template><form><form>
1644+
#errors
1645+
#document
1646+
| <html>
1647+
| <head>
1648+
| <body>
1649+
| <template>
1650+
| content
1651+
| <form>
1652+
| <form>
1653+
1654+
#data
1655+
<body><form><template><isindex>
1656+
#errors
1657+
#document
1658+
| <html>
1659+
| <head>
1660+
| <body>
1661+
| <form>
1662+
| <template>
1663+
| content
1664+
| <form>
1665+
| <hr>
1666+
| <label>
1667+
| "This is a searchable index. Enter search keywords: "
1668+
| <input>
1669+
| name="isindex"
1670+
| <hr>
1671+
1672+
#data
1673+
<body><form><template><isindex><form>
1674+
#errors
1675+
#document
1676+
| <html>
1677+
| <head>
1678+
| <body>
1679+
| <form>
1680+
| <template>
1681+
| content
1682+
| <form>
1683+
| <hr>
1684+
| <label>
1685+
| "This is a searchable index. Enter search keywords: "
1686+
| <input>
1687+
| name="isindex"
1688+
| <hr>
1689+
| <form>

0 commit comments

Comments
 (0)