From c5aab778cca9b8c579f4241ed76c5dfeac4c8553 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Thu, 3 Jul 2008 16:57:23 +0000 Subject: Add tree construction tests in anticipation of a test harness. svn path=/trunk/hubbub/; revision=4504 --- test/data/tree-construction/tests7.dat | 416 +++++++++++++++++++++++++++++++++ 1 file changed, 416 insertions(+) create mode 100644 test/data/tree-construction/tests7.dat (limited to 'test/data/tree-construction/tests7.dat') diff --git a/test/data/tree-construction/tests7.dat b/test/data/tree-construction/tests7.dat new file mode 100644 index 0000000..be0b9a5 --- /dev/null +++ b/test/data/tree-construction/tests7.dat @@ -0,0 +1,416 @@ +#data +X +#errors +#document +| +| +| +| +| +| "X" + +#data +<!doctype html><table><title>X +#errors +xxx +#document +| +| +| +| +| +| "X" +| <table> + +#data +<!doctype html><head></head><title>X +#errors +element-belongs-in-da-head +#document +| +| +| +| +| "X" +| <body> + +#data +<!doctype html></head><title>X +#errors +element-belongs-in-da-head +#document +| +| +| +| +| "X" +| <body> + +#data +<!doctype html></body><title>X +#errors +22: Stray end tag “body”. +29: “title” element outside “head”. +#document +| +| +| +| +| "X" +| <body> + +#data +<!doctype html><table><meta></table> +#errors +meta-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <meta> +| <table> + +#data +<!doctype html><table> X<meta></table> +#errors +characters-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| "X" +| <meta> +| <table> +| " " + +#data +<!doctype html><table>X<tr><td><table> <meta></table></table> +#errors +characters-in-table +meta-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| "X" +| <table> +| <tbody> +| <tr> +| <td> +| <meta> +| <table> +| " " + +#data +<!doctype html><html> <head> +#errors +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> + +#data +<!doctype html> <head> +#errors +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> + +#data +<!doctype html><table> x</table> +#errors +node-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| "x" +| <table> +| " " + +#data +<!doctype html><table> x </table> +#errors +node-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| "x " +| <table> +| " " + +#data +<!doctype html><table><tr> x</table> +#errors +node-in-table-row +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| "x" +| <table> +| <tbody> +| <tr> +| " " + +#data +<!doctype html><table><style> <tr>x </style> </table> +#errors +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <table> +| <style> +| " <tr>x " +| " " + +#data +<!doctype html><table><TBODY><script> <tr>x </script> </table> +#errors +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <table> +| <tbody> +| <script> +| " <tr>x " +| " " + +#data +<!doctype html><table>X<style> <tr>x </style> </table> +#errors +xxxx +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| "X" +| <style> +| " <tr>x " +| " " +| <table> + +#data +<!doctype html><p><applet><p>X</p></applet> +#errors +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <p> +| <applet> +| <p> +| "X" + +#data +<!doctype html><listing> +X</listing> +#errors +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <listing> +| "X" + +#data +<!doctype html><select><input>X +#errors +input-in-select +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <select> +| <input> +| "X" + +#data +<!doctype html><select><select>X +#errors +select-in-select +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <select> +| "X" + +#data +<!doctype html><table><input type=hidDEN></table> +#errors +input-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <table> +| <input> +| type="hidDEN" + +#data +<!doctype html><table>X<input type=hidDEN></table> +#errors +input-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| "X" +| <input> +| type="hidDEN" +| <table> + +#data +<!doctype html><table> <input type=hidDEN></table> +#errors +input-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <table> +| " " +| <input> +| type="hidDEN" + +#data +<!doctype html><table> <input type='hidDEN'></table> +#errors +input-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <table> +| " " +| <input> +| type="hidDEN" + +#data +<!doctype html><table><input type=" hidden"><input type=hidDEN></table> +#errors +input-in-table +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <input> +| type=" hidden" +| <input> +| type="hidDEN" +| <table> + +#data +<!doctype html><table><select>X<tr> +#errors +select-in-table +unexpected-tr-in-select-in-table +eof +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <select> +| "X" +| <table> +| <tbody> +| <tr> + +#data +<!doctype html><select>X</select> +#errors +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <select> +| "X" + +#data +<!DOCTYPE hTmL><html></html> +#errors +#document +| <!DOCTYPE hTmL> +| <html> +| <head> +| <body> + +#data +<!DOCTYPE HTML><html></html> +#errors +#document +| <!DOCTYPE HTML> +| <html> +| <head> +| <body> + +#data +<body>X</body></body> +#errors +21: Saw an end tag after body had been closed. +#document-fragment +html +#document +| <head> +| <body> +| "X" + +#data +<!doctype html><div><table><a>foo</a> <tr><td>bar</td> </tr></table></div> +#errors +unexpected-start-tag-implies-table-voodoo +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <div> +| <a> +| "foo" +| " " +| <table> +| <tbody> +| <tr> +| <td> +| "bar" + +#data +<div><p>a</x> b +#errors +5: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”. +13: Stray end tag “x”. +15: End of file seen and there were open elements. +#document +| <html> +| <head> +| <body> +| <div> +| <p> +| "a b" -- cgit v1.2.3