Skip to content

Commit a97aa21

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

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
@@ -1344,3 +1344,75 @@
13441344
| content
13451345
| "Foo"
13461346
| <body>
1347+
1348+
#data
1349+
<body><form><template><form>
1350+
#errors
1351+
#document
1352+
| <html>
1353+
| <head>
1354+
| <body>
1355+
| <form>
1356+
| <template>
1357+
| content
1358+
| <form>
1359+
1360+
#data
1361+
<body><template><table><form>
1362+
#errors
1363+
#document
1364+
| <html>
1365+
| <head>
1366+
| <body>
1367+
| <template>
1368+
| content
1369+
| <table>
1370+
1371+
#data
1372+
<body><template><form><form>
1373+
#errors
1374+
#document
1375+
| <html>
1376+
| <head>
1377+
| <body>
1378+
| <template>
1379+
| content
1380+
| <form>
1381+
| <form>
1382+
1383+
#data
1384+
<body><form><template><isindex>
1385+
#errors
1386+
#document
1387+
| <html>
1388+
| <head>
1389+
| <body>
1390+
| <form>
1391+
| <template>
1392+
| content
1393+
| <form>
1394+
| <hr>
1395+
| <label>
1396+
| "This is a searchable index. Enter search keywords: "
1397+
| <input>
1398+
| name="isindex"
1399+
| <hr>
1400+
1401+
#data
1402+
<body><form><template><isindex><form>
1403+
#errors
1404+
#document
1405+
| <html>
1406+
| <head>
1407+
| <body>
1408+
| <form>
1409+
| <template>
1410+
| content
1411+
| <form>
1412+
| <hr>
1413+
| <label>
1414+
| "This is a searchable index. Enter search keywords: "
1415+
| <input>
1416+
| name="isindex"
1417+
| <hr>
1418+
| <form>

0 commit comments

Comments
 (0)