summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-04-07 02:04:05 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-04-07 02:04:05 +0000
commit427ce60a0cf055347b2fd7ac4a37bec59d65c3ac (patch)
treeff3c9fc5b4d0366f5b2066209bbfb0ec824a5f6d /test/data
parent2ef742b2bbe323e50001bece2116734ec2b01ee0 (diff)
downloadlibhubbub-427ce60a0cf055347b2fd7ac4a37bec59d65c3ac.tar.gz
libhubbub-427ce60a0cf055347b2fd7ac4a37bec59d65c3ac.tar.bz2
Implement "in body" insertion mode.
Modify treebuilder test driver to bring it in line with API changes. A few minimal bits of testdata for various bits of in body. Proper testing will come once we're actually building a tree. svn path=/trunk/hubbub/; revision=4076
Diffstat (limited to 'test/data')
-rw-r--r--test/data/html/INDEX2
-rw-r--r--test/data/html/isindex.html8
-rw-r--r--test/data/html/misnested.html11
3 files changed, 21 insertions, 0 deletions
diff --git a/test/data/html/INDEX b/test/data/html/INDEX
index cd97b8e..25483db 100644
--- a/test/data/html/INDEX
+++ b/test/data/html/INDEX
@@ -6,3 +6,5 @@ section-tree-construction.html HTML5 tree construction algorithm
#web-apps.html HTML5 specification
initial-close-tag.html Page with initial </html>
#phonecalls.html HTML document that breaks libxml's HTML parser
+misnested.html Misnested tags
+isindex.html Test of <isindex> parsing
diff --git a/test/data/html/isindex.html b/test/data/html/isindex.html
new file mode 100644
index 0000000..f454069
--- /dev/null
+++ b/test/data/html/isindex.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+<body>
+<isindex action="foo" name="bar">
+<isindex action="foo" name="bar" prompt="baz">
+</body>
+</html>
+
diff --git a/test/data/html/misnested.html b/test/data/html/misnested.html
new file mode 100644
index 0000000..1116840
--- /dev/null
+++ b/test/data/html/misnested.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Misnested tags</title>
+</head>
+<body>
+<p>Hello <b>this <i>is a test </b>of badly </i>nested tags</p>
+<p>Hello <b>this <i>is a <button>test </b>of badly </i>nested tags</p>
+<p>Hello <a>this is <p><a>test </p></p>
+</body>
+</html>