Update html5lib test data to latest version
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Apr 2014 07:19:39 +0000 (07:19 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Apr 2014 07:19:39 +0000 (07:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=131588

Patch by Koji Ishii <kojishi@gmail.com> on 2014-04-14
Reviewed by Darin Adler.

This patch imports the latest version of the "dat" files from
https://github.com/html5lib/html5lib-tests
Also updated expected files for failures of new tests.

* html5lib/generated/run-adoption01-data-expected.txt: Passes now as a bug in the test was fixed.
* html5lib/generated/run-adoption01-write-expected.txt: Supressed new failures.
* html5lib/generated/run-inbody01-data-expected.txt: Added.
* html5lib/generated/run-inbody01-data.html: Added.
* html5lib/generated/run-inbody01-write-expected.txt: Added.
* html5lib/generated/run-inbody01-write.html: Added.
* html5lib/generated/run-main-element-data-expected.txt: Added.
* html5lib/generated/run-main-element-data.html: Added.
* html5lib/generated/run-main-element-write-expected.txt: Added.
* html5lib/generated/run-main-element-write.html: Added.
* html5lib/generated/run-template-data-expected.txt: Supressed new failures.
* html5lib/generated/run-template-write-expected.txt: Supressed new failures.
* html5lib/generated/run-tests21-data-expected.txt: Supressed new failures.
* html5lib/generated/run-tests21-write-expected.txt: Supressed new failures.
* html5lib/generated/run-tests25-data-expected.txt: Supressed new failures.
* html5lib/generated/run-tests25-write-expected.txt: Supressed new failures.
* html5lib/resources/adoption01.dat:
* html5lib/resources/adoption02.dat:
* html5lib/resources/comments01.dat:
* html5lib/resources/doctype01.dat:
* html5lib/resources/domjs-unsafe.dat:
* html5lib/resources/entities01.dat:
* html5lib/resources/entities02.dat:
* html5lib/resources/html5test-com.dat:
* html5lib/resources/inbody01.dat:
* html5lib/resources/isindex.dat:
* html5lib/resources/main-element.dat: Added.
* html5lib/resources/pending-spec-changes-plain-text-unsafe.dat:
* html5lib/resources/pending-spec-changes.dat:
* html5lib/resources/plain-text-unsafe.dat:
* html5lib/resources/scriptdata01.dat:
* html5lib/resources/tables01.dat:
* html5lib/resources/template.dat:
* html5lib/resources/tests1.dat:
* html5lib/resources/tests10.dat:
* html5lib/resources/tests14.dat:
* html5lib/resources/tests15.dat:
* html5lib/resources/tests16.dat:
* html5lib/resources/tests17.dat:
* html5lib/resources/tests18.dat:
* html5lib/resources/tests19.dat:
* html5lib/resources/tests2.dat:
* html5lib/resources/tests20.dat:
* html5lib/resources/tests21.dat:
* html5lib/resources/tests22.dat:
* html5lib/resources/tests23.dat:
* html5lib/resources/tests25.dat:
* html5lib/resources/tests26.dat:
* html5lib/resources/tests3.dat:
* html5lib/resources/tests4.dat:
* html5lib/resources/tests5.dat:
* html5lib/resources/tests6.dat:
* html5lib/resources/tests7.dat:
* html5lib/resources/tests8.dat:
* html5lib/resources/tests9.dat:
* html5lib/resources/tests_innerHTML_1.dat:
* html5lib/resources/tricky01.dat:
* html5lib/resources/webkit01.dat:
* html5lib/resources/webkit02.dat:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167213 268f45cc-cd09-0410-ab3c-d52691b4dbfc

60 files changed:
LayoutTests/ChangeLog
LayoutTests/html5lib/generated/run-adoption01-data-expected.txt
LayoutTests/html5lib/generated/run-adoption01-write-expected.txt
LayoutTests/html5lib/generated/run-inbody01-data-expected.txt [new file with mode: 0644]
LayoutTests/html5lib/generated/run-inbody01-data.html [new file with mode: 0644]
LayoutTests/html5lib/generated/run-inbody01-write-expected.txt [new file with mode: 0644]
LayoutTests/html5lib/generated/run-inbody01-write.html [new file with mode: 0644]
LayoutTests/html5lib/generated/run-main-element-data-expected.txt [new file with mode: 0644]
LayoutTests/html5lib/generated/run-main-element-data.html [new file with mode: 0644]
LayoutTests/html5lib/generated/run-main-element-write-expected.txt [new file with mode: 0644]
LayoutTests/html5lib/generated/run-main-element-write.html [new file with mode: 0644]
LayoutTests/html5lib/generated/run-template-data-expected.txt
LayoutTests/html5lib/generated/run-template-write-expected.txt
LayoutTests/html5lib/generated/run-tests21-data-expected.txt
LayoutTests/html5lib/generated/run-tests21-write-expected.txt
LayoutTests/html5lib/generated/run-tests25-data-expected.txt
LayoutTests/html5lib/generated/run-tests25-write-expected.txt
LayoutTests/html5lib/resources/adoption01.dat
LayoutTests/html5lib/resources/adoption02.dat
LayoutTests/html5lib/resources/comments01.dat
LayoutTests/html5lib/resources/doctype01.dat
LayoutTests/html5lib/resources/domjs-unsafe.dat
LayoutTests/html5lib/resources/entities01.dat
LayoutTests/html5lib/resources/entities02.dat
LayoutTests/html5lib/resources/html5test-com.dat
LayoutTests/html5lib/resources/inbody01.dat
LayoutTests/html5lib/resources/isindex.dat
LayoutTests/html5lib/resources/main-element.dat [new file with mode: 0644]
LayoutTests/html5lib/resources/pending-spec-changes-plain-text-unsafe.dat
LayoutTests/html5lib/resources/pending-spec-changes.dat
LayoutTests/html5lib/resources/plain-text-unsafe.dat
LayoutTests/html5lib/resources/scriptdata01.dat
LayoutTests/html5lib/resources/tables01.dat
LayoutTests/html5lib/resources/template.dat
LayoutTests/html5lib/resources/tests1.dat
LayoutTests/html5lib/resources/tests10.dat
LayoutTests/html5lib/resources/tests14.dat
LayoutTests/html5lib/resources/tests15.dat
LayoutTests/html5lib/resources/tests16.dat
LayoutTests/html5lib/resources/tests17.dat
LayoutTests/html5lib/resources/tests18.dat
LayoutTests/html5lib/resources/tests19.dat
LayoutTests/html5lib/resources/tests2.dat
LayoutTests/html5lib/resources/tests20.dat
LayoutTests/html5lib/resources/tests21.dat
LayoutTests/html5lib/resources/tests22.dat
LayoutTests/html5lib/resources/tests23.dat
LayoutTests/html5lib/resources/tests25.dat
LayoutTests/html5lib/resources/tests26.dat
LayoutTests/html5lib/resources/tests3.dat
LayoutTests/html5lib/resources/tests4.dat
LayoutTests/html5lib/resources/tests5.dat
LayoutTests/html5lib/resources/tests6.dat
LayoutTests/html5lib/resources/tests7.dat
LayoutTests/html5lib/resources/tests8.dat
LayoutTests/html5lib/resources/tests9.dat
LayoutTests/html5lib/resources/tests_innerHTML_1.dat
LayoutTests/html5lib/resources/tricky01.dat
LayoutTests/html5lib/resources/webkit01.dat
LayoutTests/html5lib/resources/webkit02.dat

index 6f6e988..6f2ce2e 100644 (file)
@@ -1,3 +1,74 @@
+2014-04-14  Koji Ishii  <kojishi@gmail.com>
+
+        Update html5lib test data to latest version
+        https://bugs.webkit.org/show_bug.cgi?id=131588
+
+        Reviewed by Darin Adler.
+
+        This patch imports the latest version of the "dat" files from
+        https://github.com/html5lib/html5lib-tests
+        Also updated expected files for failures of new tests.
+
+        * html5lib/generated/run-adoption01-data-expected.txt: Passes now as a bug in the test was fixed.
+        * html5lib/generated/run-adoption01-write-expected.txt: Supressed new failures.
+        * html5lib/generated/run-inbody01-data-expected.txt: Added.
+        * html5lib/generated/run-inbody01-data.html: Added.
+        * html5lib/generated/run-inbody01-write-expected.txt: Added.
+        * html5lib/generated/run-inbody01-write.html: Added.
+        * html5lib/generated/run-main-element-data-expected.txt: Added.
+        * html5lib/generated/run-main-element-data.html: Added.
+        * html5lib/generated/run-main-element-write-expected.txt: Added.
+        * html5lib/generated/run-main-element-write.html: Added.
+        * html5lib/generated/run-template-data-expected.txt: Supressed new failures.
+        * html5lib/generated/run-template-write-expected.txt: Supressed new failures.
+        * html5lib/generated/run-tests21-data-expected.txt: Supressed new failures.
+        * html5lib/generated/run-tests21-write-expected.txt: Supressed new failures.
+        * html5lib/generated/run-tests25-data-expected.txt: Supressed new failures.
+        * html5lib/generated/run-tests25-write-expected.txt: Supressed new failures.
+        * html5lib/resources/adoption01.dat:
+        * html5lib/resources/adoption02.dat:
+        * html5lib/resources/comments01.dat:
+        * html5lib/resources/doctype01.dat:
+        * html5lib/resources/domjs-unsafe.dat:
+        * html5lib/resources/entities01.dat:
+        * html5lib/resources/entities02.dat:
+        * html5lib/resources/html5test-com.dat:
+        * html5lib/resources/inbody01.dat:
+        * html5lib/resources/isindex.dat:
+        * html5lib/resources/main-element.dat: Added.
+        * html5lib/resources/pending-spec-changes-plain-text-unsafe.dat:
+        * html5lib/resources/pending-spec-changes.dat:
+        * html5lib/resources/plain-text-unsafe.dat:
+        * html5lib/resources/scriptdata01.dat:
+        * html5lib/resources/tables01.dat:
+        * html5lib/resources/template.dat:
+        * html5lib/resources/tests1.dat:
+        * html5lib/resources/tests10.dat:
+        * html5lib/resources/tests14.dat:
+        * html5lib/resources/tests15.dat:
+        * html5lib/resources/tests16.dat:
+        * html5lib/resources/tests17.dat:
+        * html5lib/resources/tests18.dat:
+        * html5lib/resources/tests19.dat:
+        * html5lib/resources/tests2.dat:
+        * html5lib/resources/tests20.dat:
+        * html5lib/resources/tests21.dat:
+        * html5lib/resources/tests22.dat:
+        * html5lib/resources/tests23.dat:
+        * html5lib/resources/tests25.dat:
+        * html5lib/resources/tests26.dat:
+        * html5lib/resources/tests3.dat:
+        * html5lib/resources/tests4.dat:
+        * html5lib/resources/tests5.dat:
+        * html5lib/resources/tests6.dat:
+        * html5lib/resources/tests7.dat:
+        * html5lib/resources/tests8.dat:
+        * html5lib/resources/tests9.dat:
+        * html5lib/resources/tests_innerHTML_1.dat:
+        * html5lib/resources/tricky01.dat:
+        * html5lib/resources/webkit01.dat:
+        * html5lib/resources/webkit02.dat:
+
 2014-04-13  Darin Adler  <darin@apple.com>
 
         REGRESSION (r158617): Find on Page can get stuck in a loop when the search string occurs in an <input> in a <fieldset>
index cc84c78..42fda3f 100644 (file)
@@ -1,57 +1 @@
-../resources/adoption01.dat:
-14
-
-Test 14 of 17 in ../resources/adoption01.dat failed. Input:
-<div><a><b><div><div><div><div><div><div><div><div><div><div></a>
-Got:
-| <html>
-|   <head>
-|   <body>
-|     <div>
-|       <a>
-|         <b>
-|       <b>
-|         <div>
-|           <a>
-|           <div>
-|             <a>
-|             <div>
-|               <a>
-|               <div>
-|                 <a>
-|                 <div>
-|                   <a>
-|                   <div>
-|                     <a>
-|                     <div>
-|                       <a>
-|                       <div>
-|                         <a>
-|                           <div>
-|                             <div>
-Expected:
-| <html>
-|   <head>
-|   <body>
-|     <div>
-|       <a>
-|         <b>
-|       <b>
-|         <div>
-|           <a>
-|           <div>
-|             <a>
-|             <div>
-|               <a>
-|               <div>
-|                 <a>
-|                 <div>
-|                   <a>
-|                   <div>
-|                     <a>
-|                     <div>
-|                       <a>
-|                       <div>
-|                         <a>
-|                         <div>
-|                           <div>
+../resources/adoption01.dat: PASS
index cc84c78..42fda3f 100644 (file)
@@ -1,57 +1 @@
-../resources/adoption01.dat:
-14
-
-Test 14 of 17 in ../resources/adoption01.dat failed. Input:
-<div><a><b><div><div><div><div><div><div><div><div><div><div></a>
-Got:
-| <html>
-|   <head>
-|   <body>
-|     <div>
-|       <a>
-|         <b>
-|       <b>
-|         <div>
-|           <a>
-|           <div>
-|             <a>
-|             <div>
-|               <a>
-|               <div>
-|                 <a>
-|                 <div>
-|                   <a>
-|                   <div>
-|                     <a>
-|                     <div>
-|                       <a>
-|                       <div>
-|                         <a>
-|                           <div>
-|                             <div>
-Expected:
-| <html>
-|   <head>
-|   <body>
-|     <div>
-|       <a>
-|         <b>
-|       <b>
-|         <div>
-|           <a>
-|           <div>
-|             <a>
-|             <div>
-|               <a>
-|               <div>
-|                 <a>
-|                 <div>
-|                   <a>
-|                   <div>
-|                     <a>
-|                     <div>
-|                       <a>
-|                       <div>
-|                         <a>
-|                         <div>
-|                           <div>
+../resources/adoption01.dat: PASS
diff --git a/LayoutTests/html5lib/generated/run-inbody01-data-expected.txt b/LayoutTests/html5lib/generated/run-inbody01-data-expected.txt
new file mode 100644 (file)
index 0000000..5475ff1
--- /dev/null
@@ -0,0 +1 @@
+../resources/inbody01.dat: PASS
diff --git a/LayoutTests/html5lib/generated/run-inbody01-data.html b/LayoutTests/html5lib/generated/run-inbody01-data.html
new file mode 100644 (file)
index 0000000..c535ac4
--- /dev/null
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<script>
+var test_files = [ '../resources/inbody01.dat' ]
+</script>
+<script src="../../resources/dump-as-markup.js"></script>
+<script>window.forceDataURLs = true;</script>
+<script src="../resources/runner.js"></script>
diff --git a/LayoutTests/html5lib/generated/run-inbody01-write-expected.txt b/LayoutTests/html5lib/generated/run-inbody01-write-expected.txt
new file mode 100644 (file)
index 0000000..5475ff1
--- /dev/null
@@ -0,0 +1 @@
+../resources/inbody01.dat: PASS
diff --git a/LayoutTests/html5lib/generated/run-inbody01-write.html b/LayoutTests/html5lib/generated/run-inbody01-write.html
new file mode 100644 (file)
index 0000000..139a816
--- /dev/null
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<script>
+var test_files = [ '../resources/inbody01.dat' ]
+</script>
+<script src="../../resources/dump-as-markup.js"></script>
+
+<script src="../resources/runner.js"></script>
diff --git a/LayoutTests/html5lib/generated/run-main-element-data-expected.txt b/LayoutTests/html5lib/generated/run-main-element-data-expected.txt
new file mode 100644 (file)
index 0000000..ca43fed
--- /dev/null
@@ -0,0 +1 @@
+../resources/main-element.dat: PASS
diff --git a/LayoutTests/html5lib/generated/run-main-element-data.html b/LayoutTests/html5lib/generated/run-main-element-data.html
new file mode 100644 (file)
index 0000000..1a12cee
--- /dev/null
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<script>
+var test_files = [ '../resources/main-element.dat' ]
+</script>
+<script src="../../resources/dump-as-markup.js"></script>
+<script>window.forceDataURLs = true;</script>
+<script src="../resources/runner.js"></script>
diff --git a/LayoutTests/html5lib/generated/run-main-element-write-expected.txt b/LayoutTests/html5lib/generated/run-main-element-write-expected.txt
new file mode 100644 (file)
index 0000000..ca43fed
--- /dev/null
@@ -0,0 +1 @@
+../resources/main-element.dat: PASS
diff --git a/LayoutTests/html5lib/generated/run-main-element-write.html b/LayoutTests/html5lib/generated/run-main-element-write.html
new file mode 100644 (file)
index 0000000..67b6664
--- /dev/null
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<script>
+var test_files = [ '../resources/main-element.dat' ]
+</script>
+<script src="../../resources/dump-as-markup.js"></script>
+
+<script src="../resources/runner.js"></script>
index c2c11ed..2b16936 100644 (file)
@@ -1 +1,76 @@
-../resources/template.dat: PASS
+../resources/template.dat:
+40
+41
+68
+94
+
+Test 40 of 108 in ../resources/template.dat failed. Input:
+<frameset><template><frame></frame></template></frameset>
+Got:
+| <html>
+|   <head>
+|   <frameset>
+|     <template>
+|       content
+|         <frame>
+Expected:
+| <html>
+|   <head>
+|   <frameset>
+|     <frame>
+
+Test 41 of 108 in ../resources/template.dat failed. Input:
+<template><frame></frame></frameset><frame></frame></template>
+Got:
+| <html>
+|   <head>
+|     <template>
+|       content
+|         <frame>
+|         <frame>
+|   <body>
+Expected:
+| <html>
+|   <head>
+|     <template>
+|       content
+|   <body>
+
+Test 68 of 108 in ../resources/template.dat failed. Input:
+<html a=b><template><frame></frame><html b=c><frame></frame></template>
+Got:
+| <html>
+|   a="b"
+|   <head>
+|     <template>
+|       content
+|         <frame>
+|         <frame>
+|   <body>
+Expected:
+| <html>
+|   a="b"
+|   <head>
+|     <template>
+|       content
+|   <body>
+
+Test 94 of 108 in ../resources/template.dat failed. Input:
+<template><template><frame>
+Got:
+| <html>
+|   <head>
+|     <template>
+|       content
+|         <template>
+|           content
+|             <frame>
+|   <body>
+Expected:
+| <html>
+|   <head>
+|     <template>
+|       content
+|         <template>
+|           content
+|   <body>
index c2c11ed..2b16936 100644 (file)
@@ -1 +1,76 @@
-../resources/template.dat: PASS
+../resources/template.dat:
+40
+41
+68
+94
+
+Test 40 of 108 in ../resources/template.dat failed. Input:
+<frameset><template><frame></frame></template></frameset>
+Got:
+| <html>
+|   <head>
+|   <frameset>
+|     <template>
+|       content
+|         <frame>
+Expected:
+| <html>
+|   <head>
+|   <frameset>
+|     <frame>
+
+Test 41 of 108 in ../resources/template.dat failed. Input:
+<template><frame></frame></frameset><frame></frame></template>
+Got:
+| <html>
+|   <head>
+|     <template>
+|       content
+|         <frame>
+|         <frame>
+|   <body>
+Expected:
+| <html>
+|   <head>
+|     <template>
+|       content
+|   <body>
+
+Test 68 of 108 in ../resources/template.dat failed. Input:
+<html a=b><template><frame></frame><html b=c><frame></frame></template>
+Got:
+| <html>
+|   a="b"
+|   <head>
+|     <template>
+|       content
+|         <frame>
+|         <frame>
+|   <body>
+Expected:
+| <html>
+|   a="b"
+|   <head>
+|     <template>
+|       content
+|   <body>
+
+Test 94 of 108 in ../resources/template.dat failed. Input:
+<template><template><frame>
+Got:
+| <html>
+|   <head>
+|     <template>
+|       content
+|         <template>
+|           content
+|             <frame>
+|   <body>
+Expected:
+| <html>
+|   <head>
+|     <template>
+|       content
+|         <template>
+|           content
+|   <body>
index 85dfed6..0b74ca4 100644 (file)
@@ -1 +1,37 @@
-../resources/tests21.dat: PASS
+../resources/tests21.dat:
+13
+15
+
+Test 13 of 25 in ../resources/tests21.dat failed. Input:
+<!DOCTYPE html><svg><![CDATA[foo]]]>
+Got:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+|       "foo]]]>"
+Expected:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+|       "foo]"
+
+Test 15 of 25 in ../resources/tests21.dat failed. Input:
+<!DOCTYPE html><svg><![CDATA[foo]]]]]>
+Got:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+|       "foo]]]]]>"
+Expected:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+|       "foo]]]"
index 85dfed6..0b74ca4 100644 (file)
@@ -1 +1,37 @@
-../resources/tests21.dat: PASS
+../resources/tests21.dat:
+13
+15
+
+Test 13 of 25 in ../resources/tests21.dat failed. Input:
+<!DOCTYPE html><svg><![CDATA[foo]]]>
+Got:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+|       "foo]]]>"
+Expected:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+|       "foo]"
+
+Test 15 of 25 in ../resources/tests21.dat failed. Input:
+<!DOCTYPE html><svg><![CDATA[foo]]]]]>
+Got:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+|       "foo]]]]]>"
+Expected:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+|       "foo]]]"
index e08f1f6..8ec63b3 100644 (file)
@@ -1 +1,19 @@
-../resources/tests25.dat: PASS
+../resources/tests25.dat:
+8
+
+Test 8 of 20 in ../resources/tests25.dat failed. Input:
+<!DOCTYPE html><body><command>A
+Got:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <command>
+|     "A"
+Expected:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <command>
+|       "A"
index e08f1f6..8ec63b3 100644 (file)
@@ -1 +1,19 @@
-../resources/tests25.dat: PASS
+../resources/tests25.dat:
+8
+
+Test 8 of 20 in ../resources/tests25.dat failed. Input:
+<!DOCTYPE html><body><command>A
+Got:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <command>
+|     "A"
+Expected:
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <command>
+|       "A"
index 207a468..2e1127e 100644 (file)
@@ -1,6 +1,8 @@
 #data
 <a><p></a></p>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,10): adoption-agency-1.3
 #document
 | <html>
 |   <head>
@@ -12,6 +14,8 @@
 #data
 <a>1<p>2</a>3</p>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,12): adoption-agency-1.3
 #document
 | <html>
 |   <head>
@@ -26,6 +30,8 @@
 #data
 <a>1<button>2</a>3</button>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,17): adoption-agency-1.3
 #document
 | <html>
 |   <head>
@@ -40,6 +46,8 @@
 #data
 <a>1<b>2</a>3</b>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,12): adoption-agency-1.3
 #document
 | <html>
 |   <head>
@@ -54,6 +62,9 @@
 #data
 <a>1<div>2<div>3</a>4</div>5</div>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,20): adoption-agency-1.3
+(1,20): adoption-agency-1.3
 #document
 | <html>
 |   <head>
 #data
 <table><a>1<p>2</a>3</p>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,10): unexpected-start-tag-implies-table-voodoo
+(1,11): unexpected-character-implies-table-voodoo
+(1,14): unexpected-start-tag-implies-table-voodoo
+(1,15): unexpected-character-implies-table-voodoo
+(1,19): unexpected-end-tag-implies-table-voodoo
+(1,19): adoption-agency-1.3
+(1,20): unexpected-character-implies-table-voodoo
+(1,24): unexpected-end-tag-implies-table-voodoo
+(1,24): eof-in-table
 #document
 | <html>
 |   <head>
 #data
 <b><b><a><p></a>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,16): adoption-agency-1.3
+(1,16): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <b><a><b><p></a>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,16): adoption-agency-1.3
+(1,16): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <a><b><b><p></a>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,16): adoption-agency-1.3
+(1,16): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <p>1<s id="A">2<b id="B">3</p>4</s>5</b>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,30): unexpected-end-tag
+(1,35): adoption-agency-1.3
 #document
 | <html>
 |   <head>
 #data
 <table><a>1<td>2</td>3</table>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,10): unexpected-start-tag-implies-table-voodoo
+(1,11): unexpected-character-implies-table-voodoo
+(1,15): unexpected-cell-in-table-body
+(1,30): unexpected-implied-end-tag-in-table-view
 #document
 | <html>
 |   <head>
 #data
 <table>A<td>B</td>C</table>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,8): unexpected-character-implies-table-voodoo
+(1,12): unexpected-cell-in-table-body
+(1,22): unexpected-character-implies-table-voodoo
 #document
 | <html>
 |   <head>
 #data
 <a><svg><tr><input></a>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,23): unexpected-end-tag
+(1,23): adoption-agency-1.3
 #document
 | <html>
 |   <head>
 #data
 <div><a><b><div><div><div><div><div><div><div><div><div><div></a>
 #errors
+(1,5): expected-doctype-but-got-start-tag
+(1,65): adoption-agency-1.3
+(1,65): adoption-agency-1.3
+(1,65): adoption-agency-1.3
+(1,65): adoption-agency-1.3
+(1,65): adoption-agency-1.3
+(1,65): adoption-agency-1.3
+(1,65): adoption-agency-1.3
+(1,65): adoption-agency-1.3
+(1,65): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 |                       <a>
 |                       <div>
 |                         <a>
-|                         <div>
 |                           <div>
+|                             <div>
 
 #data
 <div><a><b><u><i><code><div></a>
 #errors
+(1,5): expected-doctype-but-got-start-tag
+(1,32): adoption-agency-1.3
+(1,32): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <b><b><b><b>x</b></b></b></b>y
 #errors
+(1,3): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <p><b><b><b><b><p>x
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,18): unexpected-end-tag
+(1,19): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
index d18151b..e54d803 100644 (file)
@@ -1,6 +1,9 @@
 #data
 <b>1<i>2<p>3</b>4
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,16): adoption-agency-1.3
+(1,17): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <a><div><style></style><address><a>
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,35): unexpected-start-tag-implies-end-tag
+(1,35): adoption-agency-1.3
+(1,35): adoption-agency-1.3
+(1,35): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
index 44f1876..35ec6cc 100644 (file)
@@ -1,6 +1,7 @@
 #data
 FOO<!-- BAR -->BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -12,6 +13,8 @@ FOO<!-- BAR -->BAZ
 #data
 FOO<!-- BAR --!>BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,15): unexpected-bang-after-double-dash-in-comment
 #document
 | <html>
 |   <head>
@@ -23,6 +26,9 @@ FOO<!-- BAR --!>BAZ
 #data
 FOO<!-- BAR --   >BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,15): unexpected-char-in-comment
+(1,21): eof-in-comment
 #document
 | <html>
 |   <head>
@@ -33,6 +39,9 @@ FOO<!-- BAR --   >BAZ
 #data
 FOO<!-- BAR -- <QUX> -- MUX -->BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,15): unexpected-char-in-comment
+(1,24): unexpected-char-in-comment
 #document
 | <html>
 |   <head>
@@ -44,6 +53,10 @@ FOO<!-- BAR -- <QUX> -- MUX -->BAZ
 #data
 FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,15): unexpected-char-in-comment
+(1,24): unexpected-char-in-comment
+(1,31): unexpected-bang-after-double-dash-in-comment
 #document
 | <html>
 |   <head>
@@ -55,6 +68,11 @@ FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
 #data
 FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,15): unexpected-char-in-comment
+(1,24): unexpected-char-in-comment
+(1,31): unexpected-char-in-comment
+(1,35): eof-in-comment
 #document
 | <html>
 |   <head>
@@ -65,6 +83,7 @@ FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
 #data
 FOO<!---->BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -76,6 +95,8 @@ FOO<!---->BAZ
 #data
 FOO<!--->BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,9): incorrect-comment
 #document
 | <html>
 |   <head>
@@ -87,6 +108,8 @@ FOO<!--->BAZ
 #data
 FOO<!-->BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,8): incorrect-comment
 #document
 | <html>
 |   <head>
@@ -98,6 +121,8 @@ FOO<!-->BAZ
 #data
 <?xml version="1.0">Hi
 #errors
+(1,1): expected-tag-name-but-got-question-mark
+(1,22): expected-doctype-but-got-chars
 #document
 | <!-- ?xml version="1.0" -->
 | <html>
@@ -108,6 +133,8 @@ FOO<!-->BAZ
 #data
 <?xml version="1.0">
 #errors
+(1,1): expected-tag-name-but-got-question-mark
+(1,20): expected-doctype-but-got-eof
 #document
 | <!-- ?xml version="1.0" -->
 | <html>
@@ -117,6 +144,8 @@ FOO<!-->BAZ
 #data
 <?xml version
 #errors
+(1,1): expected-tag-name-but-got-question-mark
+(1,13): expected-doctype-but-got-eof
 #document
 | <!-- ?xml version -->
 | <html>
@@ -126,6 +155,8 @@ FOO<!-->BAZ
 #data
 FOO<!----->BAZ
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,10): unexpected-dash-after-double-dash-in-comment
 #document
 | <html>
 |   <head>
@@ -133,3 +164,15 @@ FOO<!----->BAZ
 |     "FOO"
 |     <!-- - -->
 |     "BAZ"
+
+#data
+<html><!-- comment --><title>Comment before head</title>
+#errors
+(1,6): expected-doctype-but-got-start-tag
+#document
+| <html>
+|   <!--  comment  -->
+|   <head>
+|     <title>
+|       "Comment before head"
+|   <body>
index ae45732..cec6638 100644 (file)
@@ -21,6 +21,7 @@
 #data
 <!DOCTYPEhtml>Hello
 #errors
+(1,9): need-space-after-doctype
 #document
 | <!DOCTYPE html>
 | <html>
@@ -31,6 +32,9 @@
 #data
 <!DOCTYPE>Hello
 #errors
+(1,9): need-space-after-doctype
+(1,10): expected-doctype-name-but-got-right-bracket
+(1,10): unknown-doctype
 #document
 | <!DOCTYPE >
 | <html>
@@ -41,6 +45,8 @@
 #data
 <!DOCTYPE >Hello
 #errors
+(1,11): expected-doctype-name-but-got-right-bracket
+(1,11): unknown-doctype
 #document
 | <!DOCTYPE >
 | <html>
@@ -51,6 +57,7 @@
 #data
 <!DOCTYPE potato>Hello
 #errors
+(1,17): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
@@ -61,6 +68,7 @@
 #data
 <!DOCTYPE potato >Hello
 #errors
+(1,18): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
@@ -71,6 +79,8 @@
 #data
 <!DOCTYPE potato taco>Hello
 #errors
+(1,17): expected-space-or-right-bracket-in-doctype
+(1,22): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
@@ -81,6 +91,8 @@
 #data
 <!DOCTYPE potato taco "ddd>Hello
 #errors
+(1,17): expected-space-or-right-bracket-in-doctype
+(1,27): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato sYstEM>Hello
 #errors
+(1,24): unexpected-char-in-doctype
+(1,24): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato sYstEM    >Hello
 #errors
+(1,28): unexpected-char-in-doctype
+(1,28): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE   potato       sYstEM  ggg>Hello
 #errors
+(1,34): unexpected-char-in-doctype
+(1,37): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato SYSTEM taco  >Hello
 #errors
+(1,25): unexpected-char-in-doctype
+(1,31): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato SYSTEM 'taco"'>Hello
 #errors
+(1,32): unknown-doctype
 #document
 | <!DOCTYPE potato "" "taco"">
 | <html>
 #data
 <!DOCTYPE potato SYSTEM "taco">Hello
 #errors
+(1,31): unknown-doctype
 #document
 | <!DOCTYPE potato "" "taco">
 | <html>
 #data
 <!DOCTYPE potato SYSTEM "tai'co">Hello
 #errors
+(1,33): unknown-doctype
 #document
 | <!DOCTYPE potato "" "tai'co">
 | <html>
 #data
 <!DOCTYPE potato SYSTEMtaco "ddd">Hello
 #errors
+(1,24): unexpected-char-in-doctype
+(1,34): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato grass SYSTEM taco>Hello
 #errors
+(1,17): expected-space-or-right-bracket-in-doctype
+(1,35): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato pUbLIc>Hello
 #errors
+(1,24): unexpected-end-of-doctype
+(1,24): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato pUbLIc >Hello
 #errors
+(1,25): unexpected-end-of-doctype
+(1,25): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato pUbLIcgoof>Hello
 #errors
+(1,24): unexpected-char-in-doctype
+(1,28): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato PUBLIC goof>Hello
 #errors
+(1,25): unexpected-char-in-doctype
+(1,29): unknown-doctype
 #document
 | <!DOCTYPE potato>
 | <html>
 #data
 <!DOCTYPE potato PUBLIC "go'of">Hello
 #errors
+(1,32): unknown-doctype
 #document
 | <!DOCTYPE potato "go'of" "">
 | <html>
 #data
 <!DOCTYPE potato PUBLIC 'go'of'>Hello
 #errors
+(1,29): unexpected-char-in-doctype
+(1,32): unknown-doctype
 #document
 | <!DOCTYPE potato "go" "">
 | <html>
 #data
 <!DOCTYPE potato PUBLIC 'go:hh   of' >Hello
 #errors
+(1,38): unknown-doctype
 #document
 | <!DOCTYPE potato "go:hh   of" "">
 | <html>
 #data
 <!DOCTYPE potato PUBLIC "W3C-//dfdf" SYSTEM ggg>Hello
 #errors
+(1,38): unexpected-char-in-doctype
+(1,48): unknown-doctype
 #document
 | <!DOCTYPE potato "W3C-//dfdf" "">
 | <html>
 #data
 <!DOCTYPE ...>Hello
 #errors
+(1,14): unknown-doctype
 #document
 | <!DOCTYPE ...>
 | <html>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 #errors
+(2,58): unknown-doctype
 #document
 | <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | <html>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
 #errors
+(2,54): unknown-doctype
 #document
 | <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
 | <html>
 <!-- internal declarations -->
 ]>
 #errors
+(1,23): expected-space-or-right-bracket-in-doctype
+(2,30): unknown-doctype
 #document
 | <!DOCTYPE root-element>
 | <html>
   "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
     "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
 #errors
+(3,53): unknown-doctype
 #document
 | <!DOCTYPE html "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
 | <html>
 #data
 <!DOCTYPE HTML SYSTEM "http://www.w3.org/DTD/HTML4-strict.dtd"><body><b>Mine!</b></body>
 #errors
+(1,63): unknown-doctype
 #document
 | <!DOCTYPE html "" "http://www.w3.org/DTD/HTML4-strict.dtd">
 | <html>
 #data
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
 #errors
+(1,50): unexpected-char-in-doctype
 #document
 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 | <html>
 #data
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'http://www.w3.org/TR/html4/strict.dtd'>
 #errors
+(1,50): unexpected-char-in-doctype
 #document
 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 | <html>
 #data
 <!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01//EN"'http://www.w3.org/TR/html4/strict.dtd'>
 #errors
+(1,21): unexpected-char-in-doctype
+(1,49): unexpected-char-in-doctype
 #document
 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 | <html>
 #data
 <!DOCTYPE HTML PUBLIC'-//W3C//DTD HTML 4.01//EN''http://www.w3.org/TR/html4/strict.dtd'>
 #errors
+(1,21): unexpected-char-in-doctype
+(1,49): unexpected-char-in-doctype
 #document
 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 | <html>
index 905b94e..34b4e62 100644 (file)
Binary files a/LayoutTests/html5lib/resources/domjs-unsafe.dat and b/LayoutTests/html5lib/resources/domjs-unsafe.dat differ
index c8073b7..20d53a0 100644 (file)
@@ -1,6 +1,7 @@
 #data
 FOO&gt;BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -10,6 +11,8 @@ FOO&gt;BAR
 #data
 FOO&gtBAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,6): named-entity-without-semicolon
 #document
 | <html>
 |   <head>
@@ -19,6 +22,8 @@ FOO&gtBAR
 #data
 FOO&gt BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,6): named-entity-without-semicolon
 #document
 | <html>
 |   <head>
@@ -28,6 +33,7 @@ FOO&gt BAR
 #data
 FOO&gt;;;BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -37,6 +43,8 @@ FOO&gt;;;BAR
 #data
 I'm &notit; I tell you
 #errors
+(1,4): expected-doctype-but-got-chars
+(1,9): named-entity-without-semicolon
 #document
 | <html>
 |   <head>
@@ -46,6 +54,7 @@ I'm &notit; I tell you
 #data
 I'm &notin; I tell you
 #errors
+(1,4): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -55,6 +64,7 @@ I'm &notin; I tell you
 #data
 FOO& BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -64,6 +74,8 @@ FOO& BAR
 #data
 FOO&<BAR>
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,9): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -74,6 +86,7 @@ FOO&<BAR>
 #data
 FOO&&&&gt;BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -83,6 +96,7 @@ FOO&&&&gt;BAR
 #data
 FOO&#41;BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -92,6 +106,7 @@ FOO&#41;BAR
 #data
 FOO&#x41;BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -101,6 +116,7 @@ FOO&#x41;BAR
 #data
 FOO&#X41;BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -110,6 +126,8 @@ FOO&#X41;BAR
 #data
 FOO&#BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,5): expected-numeric-entity
 #document
 | <html>
 |   <head>
@@ -119,6 +137,8 @@ FOO&#BAR
 #data
 FOO&#ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,5): expected-numeric-entity
 #document
 | <html>
 |   <head>
@@ -128,6 +148,8 @@ FOO&#ZOO
 #data
 FOO&#xBAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,7): expected-numeric-entity
 #document
 | <html>
 |   <head>
@@ -137,6 +159,8 @@ FOO&#xBAR
 #data
 FOO&#xZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,6): expected-numeric-entity
 #document
 | <html>
 |   <head>
@@ -146,6 +170,8 @@ FOO&#xZOO
 #data
 FOO&#XZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,6): expected-numeric-entity
 #document
 | <html>
 |   <head>
@@ -155,6 +181,8 @@ FOO&#XZOO
 #data
 FOO&#41BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,7): numeric-entity-without-semicolon
 #document
 | <html>
 |   <head>
@@ -164,6 +192,8 @@ FOO&#41BAR
 #data
 FOO&#x41BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,10): numeric-entity-without-semicolon
 #document
 | <html>
 |   <head>
@@ -173,6 +203,8 @@ FOO&#x41BAR
 #data
 FOO&#x41ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,8): numeric-entity-without-semicolon
 #document
 | <html>
 |   <head>
@@ -182,6 +214,8 @@ FOO&#x41ZOO
 #data
 FOO&#x0000;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -191,6 +225,7 @@ FOO&#x0000;ZOO
 #data
 FOO&#x0078;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -200,6 +235,7 @@ FOO&#x0078;ZOO
 #data
 FOO&#x0079;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -209,6 +245,8 @@ FOO&#x0079;ZOO
 #data
 FOO&#x0080;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -218,6 +256,8 @@ FOO&#x0080;ZOO
 #data
 FOO&#x0081;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -227,6 +267,8 @@ FOO&#x0081;ZOO
 #data
 FOO&#x0082;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -236,6 +278,8 @@ FOO&#x0082;ZOO
 #data
 FOO&#x0083;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -245,6 +289,8 @@ FOO&#x0083;ZOO
 #data
 FOO&#x0084;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -254,6 +300,8 @@ FOO&#x0084;ZOO
 #data
 FOO&#x0085;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -263,6 +311,8 @@ FOO&#x0085;ZOO
 #data
 FOO&#x0086;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -272,6 +322,8 @@ FOO&#x0086;ZOO
 #data
 FOO&#x0087;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -281,6 +333,8 @@ FOO&#x0087;ZOO
 #data
 FOO&#x0088;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -290,6 +344,8 @@ FOO&#x0088;ZOO
 #data
 FOO&#x0089;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -299,6 +355,8 @@ FOO&#x0089;ZOO
 #data
 FOO&#x008A;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -308,6 +366,8 @@ FOO&#x008A;ZOO
 #data
 FOO&#x008B;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -317,6 +377,8 @@ FOO&#x008B;ZOO
 #data
 FOO&#x008C;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -326,6 +388,8 @@ FOO&#x008C;ZOO
 #data
 FOO&#x008D;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -335,6 +399,8 @@ FOO&#x008D;ZOO
 #data
 FOO&#x008E;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -344,6 +410,8 @@ FOO&#x008E;ZOO
 #data
 FOO&#x008F;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -353,6 +421,8 @@ FOO&#x008F;ZOO
 #data
 FOO&#x0090;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -362,6 +432,8 @@ FOO&#x0090;ZOO
 #data
 FOO&#x0091;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -371,6 +443,8 @@ FOO&#x0091;ZOO
 #data
 FOO&#x0092;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -380,6 +454,8 @@ FOO&#x0092;ZOO
 #data
 FOO&#x0093;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -389,6 +465,8 @@ FOO&#x0093;ZOO
 #data
 FOO&#x0094;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -398,6 +476,8 @@ FOO&#x0094;ZOO
 #data
 FOO&#x0095;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -407,6 +487,8 @@ FOO&#x0095;ZOO
 #data
 FOO&#x0096;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -416,6 +498,8 @@ FOO&#x0096;ZOO
 #data
 FOO&#x0097;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -425,6 +509,8 @@ FOO&#x0097;ZOO
 #data
 FOO&#x0098;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -434,6 +520,8 @@ FOO&#x0098;ZOO
 #data
 FOO&#x0099;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -443,6 +531,8 @@ FOO&#x0099;ZOO
 #data
 FOO&#x009A;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -452,6 +542,8 @@ FOO&#x009A;ZOO
 #data
 FOO&#x009B;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -461,6 +553,8 @@ FOO&#x009B;ZOO
 #data
 FOO&#x009C;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -470,6 +564,8 @@ FOO&#x009C;ZOO
 #data
 FOO&#x009D;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -479,6 +575,8 @@ FOO&#x009D;ZOO
 #data
 FOO&#x009E;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -488,6 +586,8 @@ FOO&#x009E;ZOO
 #data
 FOO&#x009F;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -497,6 +597,7 @@ FOO&#x009F;ZOO
 #data
 FOO&#x00A0;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -506,6 +607,7 @@ FOO&#x00A0;ZOO
 #data
 FOO&#xD7FF;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -515,6 +617,8 @@ FOO&#xD7FF;ZOO
 #data
 FOO&#xD800;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -524,6 +628,8 @@ FOO&#xD800;ZOO
 #data
 FOO&#xD801;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -533,6 +639,8 @@ FOO&#xD801;ZOO
 #data
 FOO&#xDFFE;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -542,6 +650,8 @@ FOO&#xDFFE;ZOO
 #data
 FOO&#xDFFF;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,11): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -551,6 +661,7 @@ FOO&#xDFFF;ZOO
 #data
 FOO&#xE000;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -560,6 +671,8 @@ FOO&#xE000;ZOO
 #data
 FOO&#x10FFFE;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,13): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -569,6 +682,7 @@ FOO&#x10FFFE;ZOO
 #data
 FOO&#x1087D4;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -578,6 +692,8 @@ FOO&#x1087D4;ZOO
 #data
 FOO&#x10FFFF;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,13): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -587,6 +703,8 @@ FOO&#x10FFFF;ZOO
 #data
 FOO&#x110000;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,13): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
@@ -596,6 +714,8 @@ FOO&#x110000;ZOO
 #data
 FOO&#xFFFFFF;ZOO
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,13): illegal-codepoint-for-numeric-entity
 #document
 | <html>
 |   <head>
index b484687..22365c9 100644 (file)
@@ -1,6 +1,7 @@
 #data
 <div bar="ZZ&gt;YY"></div>
 #errors
+(1,20): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -11,6 +12,7 @@
 #data
 <div bar="ZZ&"></div>
 #errors
+(1,15): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -21,6 +23,7 @@
 #data
 <div bar='ZZ&'></div>
 #errors
+(1,15): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -31,6 +34,7 @@
 #data
 <div bar=ZZ&></div>
 #errors
+(1,13): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -41,6 +45,8 @@
 #data
 <div bar="ZZ&gt=YY"></div>
 #errors
+(1,15): named-entity-without-semicolon
+(1,20): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -51,6 +57,7 @@
 #data
 <div bar="ZZ&gt0YY"></div>
 #errors
+(1,20): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -61,6 +68,7 @@
 #data
 <div bar="ZZ&gt9YY"></div>
 #errors
+(1,20): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -71,6 +79,7 @@
 #data
 <div bar="ZZ&gtaYY"></div>
 #errors
+(1,20): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -81,6 +90,7 @@
 #data
 <div bar="ZZ&gtZYY"></div>
 #errors
+(1,20): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar="ZZ&gt YY"></div>
 #errors
+(1,15): named-entity-without-semicolon
+(1,20): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar="ZZ&gt"></div>
 #errors
+(1,15): named-entity-without-semicolon
+(1,17): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar='ZZ&gt'></div>
 #errors
+(1,15): named-entity-without-semicolon
+(1,17): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar=ZZ&gt></div>
 #errors
+(1,14): named-entity-without-semicolon
+(1,15): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar="ZZ&pound_id=23"></div>
 #errors
+(1,18): named-entity-without-semicolon
+(1,26): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar="ZZ&prod_id=23"></div>
 #errors
+(1,25): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar="ZZ&pound;_id=23"></div>
 #errors
+(1,27): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar="ZZ&prod;_id=23"></div>
 #errors
+(1,26): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar="ZZ&pound=23"></div>
 #errors
+(1,18): named-entity-without-semicolon
+(1,23): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div bar="ZZ&prod=23"></div>
 #errors
+(1,22): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div>ZZ&pound_id=23</div>
 #errors
+(1,5): expected-doctype-but-got-start-tag
+(1,13): named-entity-without-semicolon
 #document
 | <html>
 |   <head>
 #data
 <div>ZZ&prod_id=23</div>
 #errors
+(1,5): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div>ZZ&pound;_id=23</div>
 #errors
+(1,5): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div>ZZ&prod;_id=23</div>
 #errors
+(1,5): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <div>ZZ&pound=23</div>
 #errors
+(1,5): expected-doctype-but-got-start-tag
+(1,13): named-entity-without-semicolon
 #document
 | <html>
 |   <head>
 #data
 <div>ZZ&prod=23</div>
 #errors
+(1,5): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
index d7cb71d..8c6ec40 100644 (file)
@@ -1,6 +1,8 @@
 #data
 <div<div>
 #errors
+(1,9): expected-doctype-but-got-start-tag
+(1,9): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -10,6 +12,9 @@
 #data
 <div foo<bar=''>
 #errors
+(1,9): invalid-character-in-attribute-name
+(1,16): expected-doctype-but-got-start-tag
+(1,16): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <div foo=`bar`>
 #errors
+(1,10): equals-in-unquoted-attribute-value
+(1,14): unexpected-character-in-unquoted-attribute-value
+(1,15): expected-doctype-but-got-start-tag
+(1,15): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -30,6 +39,9 @@
 #data
 <div \"foo=''>
 #errors
+(1,7): invalid-character-in-attribute-name
+(1,14): expected-doctype-but-got-start-tag
+(1,14): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -40,6 +52,7 @@
 #data
 <a href='\nbar'></a>
 #errors
+(1,16): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -59,6 +72,7 @@
 #data
 &lang;&rang;
 #errors
+(1,6): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -68,6 +82,7 @@
 #data
 &apos;
 #errors
+(1,6): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -77,6 +92,7 @@
 #data
 &ImaginaryI;
 #errors
+(1,12): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
 #data
 &Kopf;
 #errors
+(1,6): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
 #data
 &notinva;
 #errors
+(1,9): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
 #data
 <?import namespace="foo" implementation="#bar">
 #errors
+(1,1): expected-tag-name-but-got-question-mark
+(1,47): expected-doctype-but-got-eof
 #document
 | <!-- ?import namespace="foo" implementation="#bar" -->
 | <html>
 #data
 <!--foo--bar-->
 #errors
+(1,10): unexpected-char-in-comment
+(1,15): expected-doctype-but-got-eof
 #document
 | <!-- foo--bar -->
 | <html>
 #data
 <![CDATA[x]]>
 #errors
+(1,2): expected-dashes-or-doctype
+(1,13): expected-doctype-but-got-eof
 #document
 | <!-- [CDATA[x]] -->
 | <html>
 #data
 <textarea><!--</textarea>--></textarea>
 #errors
+(1,10): expected-doctype-but-got-start-tag
+(1,39): unexpected-end-tag
 #document
 | <html>
 |   <head>
 #data
 <textarea><!--</textarea>-->
 #errors
+(1,10): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <style><!--</style>--></style>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,30): unexpected-end-tag
 #document
 | <html>
 |   <head>
 #data
 <style><!--</style>-->
 #errors
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <ul><li>A </li> <li>B</li></ul>
 #errors
+(1,4): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <table><form><input type=hidden><input></form><div></div></table>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,13): unexpected-form-in-table
+(1,32): unexpected-hidden-input-in-table
+(1,39): unexpected-start-tag-implies-table-voodoo
+(1,46): unexpected-end-tag-implies-table-voodoo
+(1,46): unexpected-end-tag
+(1,51): unexpected-start-tag-implies-table-voodoo
+(1,57): unexpected-end-tag-implies-table-voodoo
 #document
 | <html>
 |   <head>
 #data
 <i>A<b>B<p></i>C</b>D
 #errors
+(1,3): expected-doctype-but-got-start-tag
+(1,15): adoption-agency-1.3
+(1,20): adoption-agency-1.3
 #document
 | <html>
 |   <head>
 #data
 <div></div>
 #errors
+(1,5): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <svg></svg>
 #errors
+(1,5): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <math></math>
 #errors
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
index 3f2bd37..10f6520 100644 (file)
@@ -1,6 +1,9 @@
 #data
 <button>1</foo>
 #errors
+(1,8): expected-doctype-but-got-start-tag
+(1,15): unexpected-end-tag
+(1,15): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -11,6 +14,9 @@
 #data
 <foo>1<p>2</foo>
 #errors
+(1,5): expected-doctype-but-got-start-tag
+(1,16): unexpected-end-tag
+(1,16): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -23,6 +29,8 @@
 #data
 <dd>1</foo>
 #errors
+(1,4): expected-doctype-but-got-start-tag
+(1,11): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -33,6 +41,9 @@
 #data
 <foo>1<dd>2</foo>
 #errors
+(1,5): expected-doctype-but-got-start-tag
+(1,17): unexpected-end-tag
+(1,17): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
index 88325ff..42ef997 100644 (file)
@@ -1,6 +1,8 @@
 #data
 <isindex>
 #errors
+(1,9): expected-doctype-but-got-start-tag
+(1,9): deprecated-tag
 #document
 | <html>
 |   <head>
@@ -16,6 +18,8 @@
 #data
 <isindex name="A" action="B" prompt="C" foo="D">
 #errors
+(1,48): expected-doctype-but-got-start-tag
+(1,48): deprecated-tag
 #document
 | <html>
 |   <head>
@@ -33,6 +37,9 @@
 #data
 <form><isindex>
 #errors
+(1,6): expected-doctype-but-got-start-tag
+(1,15): deprecated-tag
+(1,15): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
diff --git a/LayoutTests/html5lib/resources/main-element.dat b/LayoutTests/html5lib/resources/main-element.dat
new file mode 100644 (file)
index 0000000..0d2102e
--- /dev/null
@@ -0,0 +1,44 @@
+#data
+<!doctype html><p>foo<main>bar<p>baz
+#errors
+(1,36): expected-closing-tag-but-got-eof
+#document
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <p>
+|       "foo"
+|     <main>
+|       "bar"
+|       <p>
+|         "baz"
+
+#data
+<!doctype html><main><p>foo</main>bar
+#errors
+#document
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <main>
+|       <p>
+|         "foo"
+|     "bar"
+
+#data
+<!DOCTYPE html>xxx<svg><x><g><a><main><b>
+#errors
+#document
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     "xxx"
+|     <svg svg>
+|       <svg x>
+|         <svg g>
+|           <svg a>
+|             <svg main>
+|     <b>
index a5ebb1e..3ee8cec 100644 (file)
Binary files a/LayoutTests/html5lib/resources/pending-spec-changes-plain-text-unsafe.dat and b/LayoutTests/html5lib/resources/pending-spec-changes-plain-text-unsafe.dat differ
index 5a92084..1647d7f 100644 (file)
@@ -1,9 +1,9 @@
 #data
 <input type="hidden"><frameset>
 #errors
-21: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
-31: “frameset” start tag seen.
-31: End of file seen and there were open elements.
+(1,21): expected-doctype-but-got-start-tag
+(1,31): unexpected-start-tag
+(1,31): eof-in-frameset
 #document
 | <html>
 |   <head>
 #data
 <!DOCTYPE html><table><caption><svg>foo</table>bar
 #errors
-47: End tag “table” did not match the name of the current open element (“svg”).
-47: “table” closed but “caption” was still open.
-47: End tag “table” seen, but there were open elements.
-36: Unclosed element “svg”.
+(1,47): unexpected-end-tag
+(1,47): end-table-tag-in-caption
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <table><tr><td><svg><desc><td></desc><circle>
 #errors
-7: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
-30: A table cell was implicitly closed, but there were open elements.
-26: Unclosed element “desc”.
-20: Unclosed element “svg”.
-37: Stray end tag “desc”.
-45: End of file seen and there were open elements.
-45: Unclosed element “circle”.
-7: Unclosed element “table”.
+(1,7): expected-doctype-but-got-start-tag
+(1,30): unexpected-cell-end-tag
+(1,37): unexpected-end-tag
+(1,45): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
index 04cc11f..f40dd57 100644 (file)
Binary files a/LayoutTests/html5lib/resources/plain-text-unsafe.dat and b/LayoutTests/html5lib/resources/plain-text-unsafe.dat differ
index 76b67f4..710f541 100644 (file)
@@ -1,6 +1,7 @@
 #data
 FOO<script>'Hello'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -13,6 +14,7 @@ FOO<script>'Hello'</script>BAR
 #data
 FOO<script></script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -24,6 +26,7 @@ FOO<script></script>BAR
 #data
 FOO<script></script >BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -35,6 +38,8 @@ FOO<script></script >BAR
 #data
 FOO<script></script/>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,21): self-closing-flag-on-end-tag
 #document
 | <html>
 |   <head>
@@ -46,6 +51,8 @@ FOO<script></script/>BAR
 #data
 FOO<script></script/ >BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,20): unexpected-character-after-solidus-in-tag
 #document
 | <html>
 |   <head>
@@ -57,6 +64,8 @@ FOO<script></script/ >BAR
 #data
 FOO<script type="text/plain"></scriptx>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,42): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -69,6 +78,8 @@ FOO<script type="text/plain"></scriptx>BAR
 #data
 FOO<script></script foo=">" dd>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,31): attributes-in-end-tag
 #document
 | <html>
 |   <head>
@@ -80,6 +91,7 @@ FOO<script></script foo=">" dd>BAR
 #data
 FOO<script>'<'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -92,6 +104,7 @@ FOO<script>'<'</script>BAR
 #data
 FOO<script>'<!'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -104,6 +117,7 @@ FOO<script>'<!'</script>BAR
 #data
 FOO<script>'<!-'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -116,6 +130,7 @@ FOO<script>'<!-'</script>BAR
 #data
 FOO<script>'<!--'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -128,6 +143,7 @@ FOO<script>'<!--'</script>BAR
 #data
 FOO<script>'<!---'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -140,6 +156,7 @@ FOO<script>'<!---'</script>BAR
 #data
 FOO<script>'<!-->'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -152,6 +169,7 @@ FOO<script>'<!-->'</script>BAR
 #data
 FOO<script>'<!-->'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -164,6 +182,7 @@ FOO<script>'<!-->'</script>BAR
 #data
 FOO<script>'<!-- potato'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -176,6 +195,7 @@ FOO<script>'<!-- potato'</script>BAR
 #data
 FOO<script>'<!-- <sCrIpt'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -188,6 +208,9 @@ FOO<script>'<!-- <sCrIpt'</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt>'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,56): expected-script-data-but-got-eof
+(1,56): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -200,6 +223,9 @@ FOO<script type="text/plain">'<!-- <sCrIpt>'</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt> -'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,58): expected-script-data-but-got-eof
+(1,58): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -212,6 +238,9 @@ FOO<script type="text/plain">'<!-- <sCrIpt> -'</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt> --'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,59): expected-script-data-but-got-eof
+(1,59): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -224,6 +253,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt> --'</script>BAR
 #data
 FOO<script>'<!-- <sCrIpt> -->'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -236,6 +266,9 @@ FOO<script>'<!-- <sCrIpt> -->'</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt> --!>'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,61): expected-script-data-but-got-eof
+(1,61): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -248,6 +281,9 @@ FOO<script type="text/plain">'<!-- <sCrIpt> --!>'</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt> -- >'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,61): expected-script-data-but-got-eof
+(1,61): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -260,6 +296,9 @@ FOO<script type="text/plain">'<!-- <sCrIpt> -- >'</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt '</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,56): expected-script-data-but-got-eof
+(1,56): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -272,6 +311,9 @@ FOO<script type="text/plain">'<!-- <sCrIpt '</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt/'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
+(1,56): expected-script-data-but-got-eof
+(1,56): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -284,6 +326,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt/'</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt\'</script>BAR
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -297,6 +340,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt\'</script>BAR
 #data
 FOO<script type="text/plain">'<!-- <sCrIpt/'</script>BAR</script>QUX
 #errors
+(1,3): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
index c4b47e4..f0caaa3 100644 (file)
@@ -1,6 +1,9 @@
 #data
 <table><th>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,11): unexpected-cell-in-table-body
+(1,11): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -13,6 +16,9 @@
 #data
 <table><td>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,11): unexpected-cell-in-table-body
+(1,11): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -25,6 +31,8 @@
 #data
 <table><col foo='bar'>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,22): eof-in-table
 #document
 | <html>
 |   <head>
 #data
 <table><colgroup></html>foo
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,24): unexpected-end-tag
+(1,27): foster-parenting-character-in-table
+(1,27): foster-parenting-character-in-table
+(1,27): foster-parenting-character-in-table
+(1,27): eof-in-table
 #document
 | <html>
 |   <head>
@@ -48,6 +62,7 @@
 #data
 <table></table><p>foo
 #errors
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
 #data
 <table></body></caption></col></colgroup></html></tbody></td></tfoot></th></thead></tr><td>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,14): unexpected-end-tag
+(1,24): unexpected-end-tag
+(1,30): unexpected-end-tag
+(1,41): unexpected-end-tag
+(1,48): unexpected-end-tag
+(1,56): unexpected-end-tag
+(1,61): unexpected-end-tag
+(1,69): unexpected-end-tag
+(1,74): unexpected-end-tag
+(1,82): unexpected-end-tag
+(1,87): unexpected-end-tag
+(1,91): unexpected-cell-in-table-body
+(1,91): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <table><select><option>3</select></table>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,15): unexpected-start-tag-implies-table-voodoo
 #document
 | <html>
 |   <head>
 #data
 <table><select><table></table></select></table>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,15): unexpected-start-tag-implies-table-voodoo
+(1,22): unexpected-table-element-start-tag-in-select-in-table
+(1,22): unexpected-start-tag-implies-end-tag
+(1,39): unexpected-end-tag
+(1,47): unexpected-end-tag
 #document
 | <html>
 |   <head>
 #data
 <table><select></table>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,15): unexpected-start-tag-implies-table-voodoo
+(1,23): unexpected-table-element-end-tag-in-select-in-table
 #document
 | <html>
 |   <head>
 #data
 <table><select><option>A<tr><td>B</td></tr></table>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,15): unexpected-start-tag-implies-table-voodoo
+(1,28): unexpected-table-element-start-tag-in-select-in-table
 #document
 | <html>
 |   <head>
 #data
 <table><td></body></caption></col></colgroup></html>foo
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,11): unexpected-cell-in-table-body
+(1,18): unexpected-end-tag
+(1,28): unexpected-end-tag
+(1,34): unexpected-end-tag
+(1,45): unexpected-end-tag
+(1,52): unexpected-end-tag
+(1,55): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <table><td>A</table>B
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,11): unexpected-cell-in-table-body
 #document
 | <html>
 |   <head>
 #data
 <table><tr><caption>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,20): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <table><tr></body></caption></col></colgroup></html></td></th><td>foo
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,18): unexpected-end-tag-in-table-row
+(1,28): unexpected-end-tag-in-table-row
+(1,34): unexpected-end-tag-in-table-row
+(1,45): unexpected-end-tag-in-table-row
+(1,52): unexpected-end-tag-in-table-row
+(1,57): unexpected-end-tag-in-table-row
+(1,62): unexpected-end-tag-in-table-row
+(1,69): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <table><td><tr>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,11): unexpected-cell-in-table-body
+(1,15): eof-in-table
 #document
 | <html>
 |   <head>
 #data
 <table><td><button><td>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,11): unexpected-cell-in-table-body
+(1,23): unexpected-cell-end-tag
+(1,23): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <table><tr><td><svg><desc><td>
 #errors
+(1,7): expected-doctype-but-got-start-tag
+(1,30): unexpected-cell-end-tag
+(1,30): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
index 6cf3886..e02127c 100644 (file)
 | <html>
 |   <head>
 |   <frameset>
-|     <template>
-|       content
-|         <frame>
+|     <frame>
 
 #data
 <template><frame></frame></frameset><frame></frame></template>
 |   <head>
 |     <template>
 |       content
-|         <frame>
-|         <frame>
 |   <body>
 
 #data
 |   <head>
 |     <template>
 |       content
-|         <frame>
-|         <frame>
 |   <body>
 
 #data
 |       content
 |         <template>
 |           content
-|             <frame>
 |   <body>
 
 #data
 #data
 <body><table><tr><td><select><template>Foo</template><caption>A</table>
 #errors
+(1,62): unexpected-caption-in-select-in-table
+(1,71): unexpected-table-end-in-caption
 #document
 | <html>
 |   <head>
 |       <caption>
 |         "A"
 
-
 #data
 <body></body><template>
 #errors
+(1,23): template-after-body
+(1,24): eof-in-template
 #document
 | <html>
 |   <head>
 #data
 <head></head><template>
 #errors
+(1,23): template-after-head
+(1,24): eof-in-template
 #document
 | <html>
 |   <head>
 #data
 <head></head><template>Foo</template>
 #errors
+(1,23): template-after-head
 #document
 | <html>
 |   <head>
index cbf8bdd..f12e871 100644 (file)
@@ -1,7 +1,7 @@
 #data
 Test
 #errors
-Line: 1 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
+(1,0): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -11,7 +11,7 @@ Line: 1 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
 #data
 <p>One<p>Two
 #errors
-Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
+(1,3): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -24,7 +24,7 @@ Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
 #data
 Line1<br>Line2<br>Line3<br>Line4
 #errors
-Line: 1 Col: 5 Unexpected non-space characters. Expected DOCTYPE.
+(1,0): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -40,7 +40,7 @@ Line: 1 Col: 5 Unexpected non-space characters. Expected DOCTYPE.
 #data
 <html>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -49,7 +49,7 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <head>
 #errors
-Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -58,7 +58,7 @@ Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE.
 #data
 <body>
 #errors
-Line: 1 Col: 6 Unexpected start tag (body). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -67,7 +67,7 @@ Line: 1 Col: 6 Unexpected start tag (body). Expected DOCTYPE.
 #data
 <html><head>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -76,7 +76,7 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <html><head></head>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -85,7 +85,7 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <html><head></head><body>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -94,7 +94,7 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <html><head></head><body></body>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -103,7 +103,7 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <html><head><body></body></html>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -112,9 +112,7 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <html><head></body></html>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
-Line: 1 Col: 19 Unexpected end tag (body).
-Line: 1 Col: 26 Unexpected end tag (html).
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -123,7 +121,7 @@ Line: 1 Col: 26 Unexpected end tag (html).
 #data
 <html><head><body></html>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -132,7 +130,7 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <html><body></html>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -141,7 +139,7 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <body></html>
 #errors
-Line: 1 Col: 6 Unexpected start tag (body). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -150,8 +148,7 @@ Line: 1 Col: 6 Unexpected start tag (body). Expected DOCTYPE.
 #data
 <head></html>
 #errors
-Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE.
-Line: 1 Col: 13 Unexpected end tag (html). Ignored.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -160,7 +157,7 @@ Line: 1 Col: 13 Unexpected end tag (html). Ignored.
 #data
 </head>
 #errors
-Line: 1 Col: 7 Unexpected end tag (head). Expected DOCTYPE.
+(1,7): expected-doctype-but-got-end-tag
 #document
 | <html>
 |   <head>
@@ -169,8 +166,7 @@ Line: 1 Col: 7 Unexpected end tag (head). Expected DOCTYPE.
 #data
 </body>
 #errors
-Line: 1 Col: 7 Unexpected end tag (body). Expected DOCTYPE.
-Line: 1 Col: 7 Unexpected end tag (body) after the (implied) root element.
+(1,7): expected-doctype-but-got-end-tag element.
 #document
 | <html>
 |   <head>
@@ -179,8 +175,7 @@ Line: 1 Col: 7 Unexpected end tag (body) after the (implied) root element.
 #data
 </html>
 #errors
-Line: 1 Col: 7 Unexpected end tag (html). Expected DOCTYPE.
-Line: 1 Col: 7 Unexpected end tag (html) after the (implied) root element.
+(1,7): expected-doctype-but-got-end-tag element.
 #document
 | <html>
 |   <head>
@@ -189,10 +184,10 @@ Line: 1 Col: 7 Unexpected end tag (html) after the (implied) root element.
 #data
 <b><table><td><i></table>
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 25 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 25 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,14): unexpected-cell-in-table-body
+(1,25): unexpected-cell-end-tag
+(1,25): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -207,11 +202,11 @@ Line: 1 Col: 25 Expected closing tag. Unexpected end of file.
 #data
 <b><table><td></b><i></table>X
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 18 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 29 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 30 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,14): unexpected-cell-in-table-body
+(1,18): unexpected-end-tag
+(1,29): unexpected-cell-end-tag
+(1,30): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -227,9 +222,9 @@ Line: 1 Col: 30 Expected closing tag. Unexpected end of file.
 #data
 <h1>Hello<h2>World
 #errors
-4: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
-13: Heading cannot be a child of another heading.
-18: End of file seen and there were open elements.
+(1,4): expected-doctype-but-got-start-tag
+(1,13): unexpected-start-tag
+(1,18): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -242,10 +237,10 @@ Line: 1 Col: 30 Expected closing tag. Unexpected end of file.
 #data
 <a><p>X<a>Y</a>Z</p></a>
 #errors
-Line: 1 Col: 3 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 10 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 10 End tag (a) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 24 End tag (a) violates step 1, paragraph 1 of the adoption agency algorithm.
+(1,3): expected-doctype-but-got-start-tag
+(1,10): unexpected-start-tag-implies-end-tag
+(1,10): adoption-agency-1.3
+(1,24): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -261,8 +256,9 @@ Line: 1 Col: 24 End tag (a) violates step 1, paragraph 1 of the adoption agency
 #data
 <b><button>foo</b>bar
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 15 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
+(1,3): expected-doctype-but-got-start-tag
+(1,18): adoption-agency-1.3
+(1,21): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -276,7 +272,8 @@ Line: 1 Col: 15 End tag (b) violates step 1, paragraph 1 of the adoption agency
 #data
 <!DOCTYPE html><span><button>foo</span>bar
 #errors
-39: End tag “span” seen but there were unclosed elements.
+(1,39): unexpected-end-tag
+(1,42): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -289,12 +286,12 @@ Line: 1 Col: 15 End tag (b) violates step 1, paragraph 1 of the adoption agency
 #data
 <p><b><div><marquee></p></b></div>X
 #errors
-Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected end tag (p). Ignored.
-Line: 1 Col: 24 Unexpected end tag (p). Ignored.
-Line: 1 Col: 28 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 34 End tag (div) seen too early. Expected other end tag.
-Line: 1 Col: 35 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,11): unexpected-end-tag
+(1,24): unexpected-end-tag
+(1,28): unexpected-end-tag
+(1,34): end-tag-too-early
+(1,35): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -310,8 +307,8 @@ Line: 1 Col: 35 Expected closing tag. Unexpected end of file.
 #data
 <script><div></script></div><title><p></title><p><p>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 28 Unexpected end tag (div). Ignored.
+(1,8): expected-doctype-but-got-start-tag
+(1,28): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -326,10 +323,10 @@ Line: 1 Col: 28 Unexpected end tag (div). Ignored.
 #data
 <!--><div>--<!-->
 #errors
-Line: 1 Col: 5 Incorrect comment.
-Line: 1 Col: 10 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 17 Incorrect comment.
-Line: 1 Col: 17 Expected closing tag. Unexpected end of file.
+(1,5): incorrect-comment
+(1,10): expected-doctype-but-got-start-tag
+(1,17): incorrect-comment
+(1,17): expected-closing-tag-but-got-eof
 #document
 | <!--  -->
 | <html>
@@ -342,8 +339,8 @@ Line: 1 Col: 17 Expected closing tag. Unexpected end of file.
 #data
 <p><hr></p>
 #errors
-Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected end tag (p). Ignored.
+(1,3): expected-doctype-but-got-start-tag
+(1,11): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -355,12 +352,12 @@ Line: 1 Col: 11 Unexpected end tag (p). Ignored.
 #data
 <select><b><option><select><option></b></select>X
 #errors
-Line: 1 Col: 8 Unexpected start tag (select). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected start tag token (b) in the select phase. Ignored.
-Line: 1 Col: 27 Unexpected select start tag in the select phase treated as select end tag.
-Line: 1 Col: 39 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 48 Unexpected end tag (select). Ignored.
-Line: 1 Col: 49 Expected closing tag. Unexpected end of file.
+(1,8): expected-doctype-but-got-start-tag
+(1,11): unexpected-start-tag-in-select
+(1,27): unexpected-select-in-select
+(1,39): unexpected-end-tag
+(1,48): unexpected-end-tag
+(1,49): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -373,16 +370,15 @@ Line: 1 Col: 49 Expected closing tag. Unexpected end of file.
 #data
 <a><table><td><a><table></table><a></tr><a></table><b>X</b>C<a>Y
 #errors
-Line: 1 Col: 3 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 35 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 40 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 43 Unexpected start tag (a) in table context caused voodoo mode.
-Line: 1 Col: 43 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 43 End tag (a) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 51 Unexpected implied end tag (a) in the table phase.
-Line: 1 Col: 63 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 64 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,14): unexpected-cell-in-table-body
+(1,35): unexpected-start-tag-implies-end-tag
+(1,40): unexpected-cell-end-tag
+(1,43): unexpected-start-tag-implies-table-voodoo
+(1,43): unexpected-start-tag-implies-end-tag
+(1,43): unexpected-end-tag
+(1,63): unexpected-start-tag-implies-end-tag
+(1,64): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -406,10 +402,10 @@ Line: 1 Col: 64 Expected closing tag. Unexpected end of file.
 #data
 <a X>0<b>1<a Y>2
 #errors
-Line: 1 Col: 5 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 15 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 15 End tag (a) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,15): unexpected-start-tag-implies-end-tag
+(1,15): adoption-agency-1.3
+(1,16): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -427,14 +423,23 @@ Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
 #data
 <!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->
 #errors
-Line: 1 Col: 7 Unexpected '-' after '--' found in comment.
-Line: 1 Col: 14 Unexpected start tag (font). Expected DOCTYPE.
-Line: 1 Col: 38 Unexpected non-space characters in table context caused voodoo mode.
-Line: 1 Col: 41 Unexpected start tag (b) in table context caused voodoo mode.
-Line: 1 Col: 48 Unexpected implied end tag (b) in the table phase.
-Line: 1 Col: 48 Unexpected table cell start tag (th) in the table body phase.
-Line: 1 Col: 63 Got table cell end tag (th) while required end tags are missing.
-Line: 1 Col: 71 Unexpected end of file. Expected table content.
+(1,7): unexpected-dash-after-double-dash-in-comment
+(1,14): expected-doctype-but-got-start-tag
+(1,41): unexpected-start-tag-implies-table-voodoo
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-start-tag-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): foster-parenting-character-in-table
+(1,48): unexpected-cell-in-table-body
+(1,63): unexpected-cell-end-tag
+(1,71): eof-in-table
 #document
 | <!-- - -->
 | <html>
@@ -456,7 +461,6 @@ Line: 1 Col: 71 Unexpected end of file. Expected table content.
 #data
 <!DOCTYPE html><li>hello<li>world<ul>how<li>do</ul>you</body><!--do-->
 #errors
-Line: 1 Col: 61 Unexpected end tag (li). Missing end tag (body).
 #document
 | <!DOCTYPE html>
 | <html>
@@ -476,8 +480,8 @@ Line: 1 Col: 61 Unexpected end tag (li). Missing end tag (body).
 #data
 <!DOCTYPE html>A<option>B<optgroup>C<select>D</option>E
 #errors
-Line: 1 Col: 54 Unexpected end tag (option) in the select phase. Ignored.
-Line: 1 Col: 55 Expected closing tag. Unexpected end of file.
+(1,54): unexpected-end-tag-in-select
+(1,55): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
@@ -494,8 +498,8 @@ Line: 1 Col: 55 Expected closing tag. Unexpected end of file.
 #data
 <
 #errors
-Line: 1 Col: 1 Expected tag name. Got something else instead
-Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
+(1,1): expected-tag-name
+(1,1): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -505,8 +509,8 @@ Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
 #data
 <#
 #errors
-Line: 1 Col: 1 Expected tag name. Got something else instead
-Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
+(1,1): expected-tag-name
+(1,1): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -516,8 +520,8 @@ Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
 #data
 </
 #errors
-Line: 1 Col: 2 Expected closing tag. Unexpected end of file.
-Line: 1 Col: 2 Unexpected non-space characters. Expected DOCTYPE.
+(1,2): expected-closing-tag-but-got-eof
+(1,2): expected-doctype-but-got-chars
 #document
 | <html>
 |   <head>
@@ -527,8 +531,8 @@ Line: 1 Col: 2 Unexpected non-space characters. Expected DOCTYPE.
 #data
 </#
 #errors
-Line: 1 Col: 2 Expected closing tag. Unexpected character '#' found.
-Line: 1 Col: 3 Unexpected End of file. Expected DOCTYPE.
+(1,2): expected-closing-tag-but-got-char
+(1,3): expected-doctype-but-got-eof
 #document
 | <!-- # -->
 | <html>
@@ -538,8 +542,8 @@ Line: 1 Col: 3 Unexpected End of file. Expected DOCTYPE.
 #data
 <?
 #errors
-Line: 1 Col: 1 Expected tag name. Got '?' instead. (HTML doesn't support processing instructions.)
-Line: 1 Col: 2 Unexpected End of file. Expected DOCTYPE.
+(1,1): expected-tag-name-but-got-question-mark
+(1,2): expected-doctype-but-got-eof
 #document
 | <!-- ? -->
 | <html>
@@ -549,8 +553,8 @@ Line: 1 Col: 2 Unexpected End of file. Expected DOCTYPE.
 #data
 <?#
 #errors
-Line: 1 Col: 1 Expected tag name. Got '?' instead. (HTML doesn't support processing instructions.)
-Line: 1 Col: 3 Unexpected End of file. Expected DOCTYPE.
+(1,1): expected-tag-name-but-got-question-mark
+(1,3): expected-doctype-but-got-eof
 #document
 | <!-- ?# -->
 | <html>
@@ -560,8 +564,8 @@ Line: 1 Col: 3 Unexpected End of file. Expected DOCTYPE.
 #data
 <!
 #errors
-Line: 1 Col: 2 Expected '--' or 'DOCTYPE'. Not found.
-Line: 1 Col: 2 Unexpected End of file. Expected DOCTYPE.
+(1,2): expected-dashes-or-doctype
+(1,2): expected-doctype-but-got-eof
 #document
 | <!--  -->
 | <html>
@@ -571,8 +575,8 @@ Line: 1 Col: 2 Unexpected End of file. Expected DOCTYPE.
 #data
 <!#
 #errors
-Line: 1 Col: 3 Expected '--' or 'DOCTYPE'. Not found.
-Line: 1 Col: 3 Unexpected End of file. Expected DOCTYPE.
+(1,2): expected-dashes-or-doctype
+(1,3): expected-doctype-but-got-eof
 #document
 | <!-- # -->
 | <html>
@@ -582,8 +586,8 @@ Line: 1 Col: 3 Unexpected End of file. Expected DOCTYPE.
 #data
 <?COMMENT?>
 #errors
-Line: 1 Col: 1 Expected tag name. Got '?' instead. (HTML doesn't support processing instructions.)
-Line: 1 Col: 11 Unexpected End of file. Expected DOCTYPE.
+(1,1): expected-tag-name-but-got-question-mark
+(1,11): expected-doctype-but-got-eof
 #document
 | <!-- ?COMMENT? -->
 | <html>
@@ -593,8 +597,8 @@ Line: 1 Col: 11 Unexpected End of file. Expected DOCTYPE.
 #data
 <!COMMENT>
 #errors
-Line: 1 Col: 2 Expected '--' or 'DOCTYPE'. Not found.
-Line: 1 Col: 10 Unexpected End of file. Expected DOCTYPE.
+(1,2): expected-dashes-or-doctype
+(1,10): expected-doctype-but-got-eof
 #document
 | <!-- COMMENT -->
 | <html>
@@ -604,8 +608,8 @@ Line: 1 Col: 10 Unexpected End of file. Expected DOCTYPE.
 #data
 </ COMMENT >
 #errors
-Line: 1 Col: 2 Expected closing tag. Unexpected character ' ' found.
-Line: 1 Col: 12 Unexpected End of file. Expected DOCTYPE.
+(1,2): expected-closing-tag-but-got-char
+(1,12): expected-doctype-but-got-eof
 #document
 | <!--  COMMENT  -->
 | <html>
@@ -615,8 +619,8 @@ Line: 1 Col: 12 Unexpected End of file. Expected DOCTYPE.
 #data
 <?COM--MENT?>
 #errors
-Line: 1 Col: 1 Expected tag name. Got '?' instead. (HTML doesn't support processing instructions.)
-Line: 1 Col: 13 Unexpected End of file. Expected DOCTYPE.
+(1,1): expected-tag-name-but-got-question-mark
+(1,13): expected-doctype-but-got-eof
 #document
 | <!-- ?COM--MENT? -->
 | <html>
@@ -626,8 +630,8 @@ Line: 1 Col: 13 Unexpected End of file. Expected DOCTYPE.
 #data
 <!COM--MENT>
 #errors
-Line: 1 Col: 2 Expected '--' or 'DOCTYPE'. Not found.
-Line: 1 Col: 12 Unexpected End of file. Expected DOCTYPE.
+(1,2): expected-dashes-or-doctype
+(1,12): expected-doctype-but-got-eof
 #document
 | <!-- COM--MENT -->
 | <html>
@@ -637,8 +641,8 @@ Line: 1 Col: 12 Unexpected End of file. Expected DOCTYPE.
 #data
 </ COM--MENT >
 #errors
-Line: 1 Col: 2 Expected closing tag. Unexpected character ' ' found.
-Line: 1 Col: 14 Unexpected End of file. Expected DOCTYPE.
+(1,2): expected-closing-tag-but-got-char
+(1,14): expected-doctype-but-got-eof
 #document
 | <!--  COM--MENT  -->
 | <html>
@@ -648,7 +652,7 @@ Line: 1 Col: 14 Unexpected End of file. Expected DOCTYPE.
 #data
 <!DOCTYPE html><style> EOF
 #errors
-Line: 1 Col: 26 Unexpected end of file. Expected end tag (style).
+(1,26): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -660,6 +664,7 @@ Line: 1 Col: 26 Unexpected end of file. Expected end tag (style).
 #data
 <!DOCTYPE html><script> <!-- </script> --> </script> EOF
 #errors
+(1,52): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -673,8 +678,8 @@ Line: 1 Col: 26 Unexpected end of file. Expected end tag (style).
 #data
 <b><p></b>TEST
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 10 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
+(1,3): expected-doctype-but-got-start-tag
+(1,10): adoption-agency-1.3
 #document
 | <html>
 |   <head>
@@ -687,9 +692,9 @@ Line: 1 Col: 10 End tag (b) violates step 1, paragraph 3 of the adoption agency
 #data
 <p id=a><b><p id=b></b>TEST
 #errors
-Line: 1 Col: 8 Unexpected start tag (p). Expected DOCTYPE.
-Line: 1 Col: 19 Unexpected end tag (p). Ignored.
-Line: 1 Col: 23 End tag (b) violates step 1, paragraph 2 of the adoption agency algorithm.
+(1,8): expected-doctype-but-got-start-tag
+(1,19): unexpected-end-tag
+(1,23): adoption-agency-1.2
 #document
 | <html>
 |   <head>
@@ -704,10 +709,10 @@ Line: 1 Col: 23 End tag (b) violates step 1, paragraph 2 of the adoption agency
 #data
 <b id=a><p><b id=b></p></b>TEST
 #errors
-Line: 1 Col: 8 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 23 Unexpected end tag (p). Ignored.
-Line: 1 Col: 27 End tag (b) violates step 1, paragraph 2 of the adoption agency algorithm.
-Line: 1 Col: 31 Expected closing tag. Unexpected end of file.
+(1,8): expected-doctype-but-got-start-tag
+(1,23): unexpected-end-tag
+(1,27): adoption-agency-1.2
+(1,31): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -722,7 +727,7 @@ Line: 1 Col: 31 Expected closing tag. Unexpected end of file.
 #data
 <!DOCTYPE html><title>U-test</title><body><div><p>Test<u></p></div></body>
 #errors
-Line: 1 Col: 61 Unexpected end tag (p). Ignored.
+(1,61): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -738,8 +743,8 @@ Line: 1 Col: 61 Unexpected end tag (p). Ignored.
 #data
 <!DOCTYPE html><font><table></font></table></font>
 #errors
-Line: 1 Col: 35 Unexpected end tag (font) in table context caused voodoo mode.
-Line: 1 Col: 35 End tag (font) violates step 1, paragraph 1 of the adoption agency algorithm.
+(1,35): unexpected-end-tag-implies-table-voodoo
+(1,35): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -751,10 +756,10 @@ Line: 1 Col: 35 End tag (font) violates step 1, paragraph 1 of the adoption agen
 #data
 <font><p>hello<b>cruel</font>world
 #errors
-Line: 1 Col: 6 Unexpected start tag (font). Expected DOCTYPE.
-Line: 1 Col: 29 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 29 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 34 Expected closing tag. Unexpected end of file.
+(1,6): expected-doctype-but-got-start-tag
+(1,29): adoption-agency-1.3
+(1,29): adoption-agency-1.3
+(1,34): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -771,9 +776,9 @@ Line: 1 Col: 34 Expected closing tag. Unexpected end of file.
 #data
 <b>Test</i>Test
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 11 End tag (i) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,11): unexpected-end-tag
+(1,15): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -784,8 +789,8 @@ Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
 #data
 <b>A<cite>B<div>C
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 17 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,17): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -800,9 +805,9 @@ Line: 1 Col: 17 Expected closing tag. Unexpected end of file.
 #data
 <b>A<cite>B<div>C</cite>D
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 24 Unexpected end tag (cite). Ignored.
-Line: 1 Col: 25 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,24): unexpected-end-tag
+(1,25): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -817,9 +822,9 @@ Line: 1 Col: 25 Expected closing tag. Unexpected end of file.
 #data
 <b>A<cite>B<div>C</b>D
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 21 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 22 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,21): adoption-agency-1.3
+(1,22): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -836,7 +841,7 @@ Line: 1 Col: 22 Expected closing tag. Unexpected end of file.
 #data
 
 #errors
-Line: 1 Col: 0 Unexpected End of file. Expected DOCTYPE.
+(1,0): expected-doctype-but-got-eof
 #document
 | <html>
 |   <head>
@@ -845,8 +850,8 @@ Line: 1 Col: 0 Unexpected End of file. Expected DOCTYPE.
 #data
 <DIV>
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 5 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,5): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -856,8 +861,8 @@ Line: 1 Col: 5 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 9 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,9): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -868,8 +873,8 @@ Line: 1 Col: 9 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B>
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 13 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,13): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -881,8 +886,8 @@ Line: 1 Col: 13 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 17 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,17): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -895,8 +900,8 @@ Line: 1 Col: 17 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I>
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 21 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,21): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -910,8 +915,8 @@ Line: 1 Col: 21 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 25 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,25): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -926,8 +931,8 @@ Line: 1 Col: 25 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi <P>
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,29): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -943,8 +948,8 @@ Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi <P> jkl
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 33 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,33): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -961,9 +966,9 @@ Line: 1 Col: 33 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi <P> jkl </B>
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 38 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 38 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,38): adoption-agency-1.3
+(1,38): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -982,9 +987,9 @@ Line: 1 Col: 38 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi <P> jkl </B> mno
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 38 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 42 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,38): adoption-agency-1.3
+(1,42): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1004,10 +1009,10 @@ Line: 1 Col: 42 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi <P> jkl </B> mno </I>
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 38 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 47 End tag (i) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 47 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,38): adoption-agency-1.3
+(1,47): adoption-agency-1.3
+(1,47): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1028,10 +1033,10 @@ Line: 1 Col: 47 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 38 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 47 End tag (i) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 51 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,38): adoption-agency-1.3
+(1,47): adoption-agency-1.3
+(1,51): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1053,10 +1058,10 @@ Line: 1 Col: 51 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr </P>
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 38 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 47 End tag (i) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 56 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,38): adoption-agency-1.3
+(1,47): adoption-agency-1.3
+(1,56): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1078,10 +1083,10 @@ Line: 1 Col: 56 Expected closing tag. Unexpected end of file.
 #data
 <DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr </P> stu
 #errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 38 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 47 End tag (i) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 60 Expected closing tag. Unexpected end of file.
+(1,5): expected-doctype-but-got-start-tag
+(1,38): adoption-agency-1.3
+(1,47): adoption-agency-1.3
+(1,60): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1104,8 +1109,8 @@ Line: 1 Col: 60 Expected closing tag. Unexpected end of file.
 #data
 <test attribute---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 #errors
-Line: 1 Col: 1040 Unexpected start tag (test). Expected DOCTYPE.
-Line: 1 Col: 1040 Expected closing tag. Unexpected end of file.
+(1,1040): expected-doctype-but-got-start-tag
+(1,1040): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1116,14 +1121,14 @@ Line: 1 Col: 1040 Expected closing tag. Unexpected end of file.
 #data
 <a href="blah">aba<table><a href="foo">br<tr><td></td></tr>x</table>aoe
 #errors
-Line: 1 Col: 15 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 39 Unexpected start tag (a) in table context caused voodoo mode.
-Line: 1 Col: 39 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 39 End tag (a) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 45 Unexpected implied end tag (a) in the table phase.
-Line: 1 Col: 68 Unexpected implied end tag (a) in the table phase.
-Line: 1 Col: 71 Expected closing tag. Unexpected end of file.
-
+(1,15): expected-doctype-but-got-start-tag
+(1,39): unexpected-start-tag-implies-table-voodoo
+(1,39): unexpected-start-tag-implies-end-tag
+(1,39): unexpected-end-tag
+(1,45): foster-parenting-character-in-table
+(1,45): foster-parenting-character-in-table
+(1,68): foster-parenting-character-in-table
+(1,71): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1148,10 +1153,9 @@ Line: 1 Col: 71 Expected closing tag. Unexpected end of file.
 #data
 <a href="blah">aba<table><tr><td><a href="foo">br</td></tr>x</table>aoe
 #errors
-Line: 1 Col: 15 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 54 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 60 Unexpected non-space characters in table context caused voodoo mode.
-Line: 1 Col: 71 Expected closing tag. Unexpected end of file.
+(1,15): expected-doctype-but-got-start-tag
+(1,54): unexpected-cell-end-tag
+(1,71): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1171,12 +1175,14 @@ Line: 1 Col: 71 Expected closing tag. Unexpected end of file.
 #data
 <table><a href="blah">aba<tr><td><a href="foo">br</td></tr>x</table>aoe
 #errors
-Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
-Line: 1 Col: 22 Unexpected start tag (a) in table context caused voodoo mode.
-Line: 1 Col: 29 Unexpected implied end tag (a) in the table phase.
-Line: 1 Col: 54 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 68 Unexpected implied end tag (a) in the table phase.
-Line: 1 Col: 71 Expected closing tag. Unexpected end of file.
+(1,7): expected-doctype-but-got-start-tag
+(1,22): unexpected-start-tag-implies-table-voodoo
+(1,29): foster-parenting-character-in-table
+(1,29): foster-parenting-character-in-table
+(1,29): foster-parenting-character-in-table
+(1,54): unexpected-cell-end-tag
+(1,68): foster-parenting-character-in-table
+(1,71): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1201,9 +1207,9 @@ Line: 1 Col: 71 Expected closing tag. Unexpected end of file.
 #data
 <a href=a>aa<marquee>aa<a href=b>bb</marquee>aa
 #errors
-Line: 1 Col: 10 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 45 End tag (marquee) seen too early. Expected other end tag.
-Line: 1 Col: 47 Expected closing tag. Unexpected end of file.
+(1,10): expected-doctype-but-got-start-tag
+(1,45): end-tag-too-early
+(1,47): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1221,9 +1227,10 @@ Line: 1 Col: 47 Expected closing tag. Unexpected end of file.
 #data
 <wbr><strike><code></strike><code><strike></code>
 #errors
-Line: 1 Col: 5 Unexpected start tag (wbr). Expected DOCTYPE.
-Line: 1 Col: 28 End tag (strike) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 49 Unexpected end tag (code). Ignored.
+(1,5): expected-doctype-but-got-start-tag
+(1,28): adoption-agency-1.3
+(1,49): adoption-agency-1.3
+(1,49): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1238,7 +1245,7 @@ Line: 1 Col: 49 Unexpected end tag (code). Ignored.
 #data
 <!DOCTYPE html><spacer>foo
 #errors
-26: End of file seen and there were open elements.
+(1,26): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -1250,7 +1257,7 @@ Line: 1 Col: 49 Unexpected end tag (code). Ignored.
 #data
 <title><meta></title><link><title><meta></title>
 #errors
-Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1264,8 +1271,7 @@ Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
 #data
 <style><!--</style><meta><script>--><link></script>
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
-Line: 1 Col: 51 Unexpected end of file. Expected end tag (style).
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1279,8 +1285,8 @@ Line: 1 Col: 51 Unexpected end of file. Expected end tag (style).
 #data
 <head><meta></head><link>
 #errors
-Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE.
-Line: 1 Col: 25 Unexpected start tag (link) that can be in head. Moved.
+(1,6): expected-doctype-but-got-start-tag
+(1,25): unexpected-start-tag-out-of-my-head
 #document
 | <html>
 |   <head>
@@ -1291,9 +1297,9 @@ Line: 1 Col: 25 Unexpected start tag (link) that can be in head. Moved.
 #data
 <table><tr><tr><td><td><span><th><span>X</table>
 #errors
-Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
-Line: 1 Col: 33 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 48 Got table cell end tag (th) while required end tags are missing.
+(1,7): expected-doctype-but-got-start-tag
+(1,33): unexpected-cell-end-tag
+(1,48): unexpected-cell-end-tag
 #document
 | <html>
 |   <head>
@@ -1312,10 +1318,9 @@ Line: 1 Col: 48 Got table cell end tag (th) while required end tags are missing.
 #data
 <body><body><base><link><meta><title><p></title><body><p></body>
 #errors
-Line: 1 Col: 6 Unexpected start tag (body). Expected DOCTYPE.
-Line: 1 Col: 12 Unexpected start tag (body).
-Line: 1 Col: 54 Unexpected start tag (body).
-Line: 1 Col: 64 Unexpected end tag (p). Missing end tag (body).
+(1,6): expected-doctype-but-got-start-tag
+(1,12): unexpected-start-tag
+(1,54): unexpected-start-tag
 #document
 | <html>
 |   <head>
@@ -1330,7 +1335,7 @@ Line: 1 Col: 64 Unexpected end tag (p). Missing end tag (body).
 #data
 <textarea><p></textarea>
 #errors
-Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
+(1,10): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1341,8 +1346,8 @@ Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
 #data
 <p><image></p>
 #errors
-Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
-Line: 1 Col: 10 Unexpected start tag (image). Treated as img.
+(1,3): expected-doctype-but-got-start-tag
+(1,10): unexpected-start-tag-treated-as
 #document
 | <html>
 |   <head>
@@ -1353,17 +1358,16 @@ Line: 1 Col: 10 Unexpected start tag (image). Treated as img.
 #data
 <a><table><a></table><p><a><div><a>
 #errors
-Line: 1 Col: 3 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 13 Unexpected start tag (a) in table context caused voodoo mode.
-Line: 1 Col: 13 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 13 End tag (a) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 21 Unexpected end tag (table). Expected end tag (a).
-Line: 1 Col: 27 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 27 End tag (a) violates step 1, paragraph 2 of the adoption agency algorithm.
-Line: 1 Col: 32 Unexpected end tag (p). Ignored.
-Line: 1 Col: 35 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 35 End tag (a) violates step 1, paragraph 2 of the adoption agency algorithm.
-Line: 1 Col: 35 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,13): unexpected-start-tag-implies-table-voodoo
+(1,13): unexpected-start-tag-implies-end-tag
+(1,13): adoption-agency-1.3
+(1,27): unexpected-start-tag-implies-end-tag
+(1,27): adoption-agency-1.2
+(1,32): unexpected-end-tag
+(1,35): unexpected-start-tag-implies-end-tag
+(1,35): adoption-agency-1.2
+(1,35): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1379,8 +1383,8 @@ Line: 1 Col: 35 Expected closing tag. Unexpected end of file.
 #data
 <head></p><meta><p>
 #errors
-Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE.
-Line: 1 Col: 10 Unexpected end tag (p). Ignored.
+(1,6): expected-doctype-but-got-start-tag
+(1,10): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1391,8 +1395,8 @@ Line: 1 Col: 10 Unexpected end tag (p). Ignored.
 #data
 <head></html><meta><p>
 #errors
-Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE.
-Line: 1 Col: 19 Unexpected start tag (meta).
+(1,6): expected-doctype-but-got-start-tag
+(1,19): expected-eof-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1403,10 +1407,10 @@ Line: 1 Col: 19 Unexpected start tag (meta).
 #data
 <b><table><td><i></table>
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 25 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 25 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,14): unexpected-cell-in-table-body
+(1,25): unexpected-cell-end-tag
+(1,25): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1421,11 +1425,11 @@ Line: 1 Col: 25 Expected closing tag. Unexpected end of file.
 #data
 <b><table><td></b><i></table>
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 18 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 29 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,14): unexpected-cell-in-table-body
+(1,18): unexpected-end-tag
+(1,29): unexpected-cell-end-tag
+(1,29): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1440,9 +1444,9 @@ Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
 #data
 <h1><h2>
 #errors
-4: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
-8: Heading cannot be a child of another heading.
-8: End of file seen and there were open elements.
+(1,4): expected-doctype-but-got-start-tag
+(1,8): unexpected-start-tag
+(1,8): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1453,10 +1457,10 @@ Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
 #data
 <a><p><a></a></p></a>
 #errors
-Line: 1 Col: 3 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 9 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 9 End tag (a) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 21 End tag (a) violates step 1, paragraph 1 of the adoption agency algorithm.
+(1,3): expected-doctype-but-got-start-tag
+(1,9): unexpected-start-tag-implies-end-tag
+(1,9): adoption-agency-1.3
+(1,21): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1469,8 +1473,9 @@ Line: 1 Col: 21 End tag (a) violates step 1, paragraph 1 of the adoption agency
 #data
 <b><button></b></button></b>
 #errors
-Line: 1 Col: 3 Unexpected start tag (b). Expected DOCTYPE.
-Line: 1 Col: 15 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
+(1,3): expected-doctype-but-got-start-tag
+(1,15): adoption-agency-1.3
+(1,28): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1482,12 +1487,12 @@ Line: 1 Col: 15 End tag (b) violates step 1, paragraph 1 of the adoption agency
 #data
 <p><b><div><marquee></p></b></div>
 #errors
-Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected end tag (p). Ignored.
-Line: 1 Col: 24 Unexpected end tag (p). Ignored.
-Line: 1 Col: 28 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 34 End tag (div) seen too early. Expected other end tag.
-Line: 1 Col: 34 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,11): unexpected-end-tag
+(1,24): unexpected-end-tag
+(1,28): unexpected-end-tag
+(1,34): end-tag-too-early
+(1,34): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1502,8 +1507,8 @@ Line: 1 Col: 34 Expected closing tag. Unexpected end of file.
 #data
 <script></script></div><title></title><p><p>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 23 Unexpected end tag (div). Ignored.
+(1,8): expected-doctype-but-got-start-tag
+(1,23): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1516,8 +1521,8 @@ Line: 1 Col: 23 Unexpected end tag (div). Ignored.
 #data
 <p><hr></p>
 #errors
-Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected end tag (p). Ignored.
+(1,3): expected-doctype-but-got-start-tag
+(1,11): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1529,12 +1534,12 @@ Line: 1 Col: 11 Unexpected end tag (p). Ignored.
 #data
 <select><b><option><select><option></b></select>
 #errors
-Line: 1 Col: 8 Unexpected start tag (select). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected start tag token (b) in the select phase. Ignored.
-Line: 1 Col: 27 Unexpected select start tag in the select phase treated as select end tag.
-Line: 1 Col: 39 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 48 Unexpected end tag (select). Ignored.
-Line: 1 Col: 48 Expected closing tag. Unexpected end of file.
+(1,8): expected-doctype-but-got-start-tag
+(1,11): unexpected-start-tag-in-select
+(1,27): unexpected-select-in-select
+(1,39): unexpected-end-tag
+(1,48): unexpected-end-tag
+(1,48): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1546,7 +1551,7 @@ Line: 1 Col: 48 Expected closing tag. Unexpected end of file.
 #data
 <html><head><title></title><body></body></html>
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1556,17 +1561,16 @@ Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
 #data
 <a><table><td><a><table></table><a></tr><a></table><a>
 #errors
-Line: 1 Col: 3 Unexpected start tag (a). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 35 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 40 Got table cell end tag (td) while required end tags are missing.
-Line: 1 Col: 43 Unexpected start tag (a) in table context caused voodoo mode.
-Line: 1 Col: 43 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 43 End tag (a) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 51 Unexpected implied end tag (a) in the table phase.
-Line: 1 Col: 54 Unexpected start tag (a) implies end tag (a).
-Line: 1 Col: 54 End tag (a) violates step 1, paragraph 2 of the adoption agency algorithm.
-Line: 1 Col: 54 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,14): unexpected-cell-in-table-body
+(1,35): unexpected-start-tag-implies-end-tag
+(1,40): unexpected-cell-end-tag
+(1,43): unexpected-start-tag-implies-table-voodoo
+(1,43): unexpected-start-tag-implies-end-tag
+(1,43): unexpected-end-tag
+(1,54): unexpected-start-tag-implies-end-tag
+(1,54): adoption-agency-1.2
+(1,54): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1585,10 +1589,10 @@ Line: 1 Col: 54 Expected closing tag. Unexpected end of file.
 #data
 <ul><li></li><div><li></div><li><li><div><li><address><li><b><em></b><li></ul>
 #errors
-Line: 1 Col: 4 Unexpected start tag (ul). Expected DOCTYPE.
-Line: 1 Col: 45 Missing end tag (div, li).
-Line: 1 Col: 58 Missing end tag (address, li).
-Line: 1 Col: 69 End tag (b) violates step 1, paragraph 3 of the adoption agency algorithm.
+(1,4): expected-doctype-but-got-start-tag
+(1,45): end-tag-too-early
+(1,58): end-tag-too-early
+(1,69): adoption-agency-1.3
 #document
 | <html>
 |   <head>
@@ -1610,7 +1614,8 @@ Line: 1 Col: 69 End tag (b) violates step 1, paragraph 3 of the adoption agency
 #data
 <ul><li><ul></li><li>a</li></ul></li></ul>
 #errors
-XXX: fix me
+(1,4): expected-doctype-but-got-start-tag
+(1,17): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1624,7 +1629,7 @@ XXX: fix me
 #data
 <frameset><frame><frameset><frame></frameset><noframes></noframes></frameset>
 #errors
-Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
+(1,10): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1637,11 +1642,11 @@ Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
 #data
 <h1><table><td><h3></table><h3></h1>
 #errors
-4: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
-15: “td” start tag in table body.
-27: Unclosed elements.
-31: Heading cannot be a child of another heading.
-36: End tag “h1” seen but there were unclosed elements.
+(1,4): expected-doctype-but-got-start-tag
+(1,15): unexpected-cell-in-table-body
+(1,27): unexpected-cell-end-tag
+(1,31): unexpected-start-tag
+(1,36): end-tag-too-early
 #document
 | <html>
 |   <head>
@@ -1657,7 +1662,7 @@ Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
 #data
 <table><colgroup><col><colgroup><col><col><col><colgroup><col><col><thead><tr><td></table>
 #errors
-Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1679,9 +1684,9 @@ Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
 #data
 <table><col><tbody><col><tr><col><td><col></table><col>
 #errors
-Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
-Line: 1 Col: 37 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 55 Unexpected start tag col. Ignored.
+(1,7): expected-doctype-but-got-start-tag
+(1,37): unexpected-cell-in-table-body
+(1,55): unexpected-start-tag-ignored
 #document
 | <html>
 |   <head>
@@ -1705,9 +1710,9 @@ Line: 1 Col: 55 Unexpected start tag col. Ignored.
 #data
 <table><colgroup><tbody><colgroup><tr><colgroup><td><colgroup></table><colgroup>
 #errors
-Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
-Line: 1 Col: 52 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 80 Unexpected start tag colgroup. Ignored.
+(1,7): expected-doctype-but-got-start-tag
+(1,52): unexpected-cell-in-table-body
+(1,80): unexpected-start-tag-ignored
 #document
 | <html>
 |   <head>
@@ -1727,90 +1732,91 @@ Line: 1 Col: 80 Unexpected start tag colgroup. Ignored.
 #data
 </strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>
 #errors
-Line: 1 Col: 9 Unexpected end tag (strong). Expected DOCTYPE.
-Line: 1 Col: 9 Unexpected end tag (strong) after the (implied) root element.
-Line: 1 Col: 13 Unexpected end tag (b) after the (implied) root element.
-Line: 1 Col: 18 Unexpected end tag (em) after the (implied) root element.
-Line: 1 Col: 22 Unexpected end tag (i) after the (implied) root element.
-Line: 1 Col: 26 Unexpected end tag (u) after the (implied) root element.
-Line: 1 Col: 35 Unexpected end tag (strike) after the (implied) root element.
-Line: 1 Col: 39 Unexpected end tag (s) after the (implied) root element.
-Line: 1 Col: 47 Unexpected end tag (blink) after the (implied) root element.
-Line: 1 Col: 52 Unexpected end tag (tt) after the (implied) root element.
-Line: 1 Col: 58 Unexpected end tag (pre) after the (implied) root element.
-Line: 1 Col: 64 Unexpected end tag (big) after the (implied) root element.
-Line: 1 Col: 72 Unexpected end tag (small) after the (implied) root element.
-Line: 1 Col: 79 Unexpected end tag (font) after the (implied) root element.
-Line: 1 Col: 88 Unexpected end tag (select) after the (implied) root element.
-Line: 1 Col: 93 Unexpected end tag (h1) after the (implied) root element.
-Line: 1 Col: 98 Unexpected end tag (h2) after the (implied) root element.
-Line: 1 Col: 103 Unexpected end tag (h3) after the (implied) root element.
-Line: 1 Col: 108 Unexpected end tag (h4) after the (implied) root element.
-Line: 1 Col: 113 Unexpected end tag (h5) after the (implied) root element.
-Line: 1 Col: 118 Unexpected end tag (h6) after the (implied) root element.
-Line: 1 Col: 125 Unexpected end tag (body) after the (implied) root element.
-Line: 1 Col: 130 Unexpected end tag (br). Treated as br element.
-Line: 1 Col: 134 End tag (a) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 140 This element (img) has no end tag.
-Line: 1 Col: 148 Unexpected end tag (title). Ignored.
-Line: 1 Col: 155 Unexpected end tag (span). Ignored.
-Line: 1 Col: 163 Unexpected end tag (style). Ignored.
-Line: 1 Col: 172 Unexpected end tag (script). Ignored.
-Line: 1 Col: 180 Unexpected end tag (table). Ignored.
-Line: 1 Col: 185 Unexpected end tag (th). Ignored.
-Line: 1 Col: 190 Unexpected end tag (td). Ignored.
-Line: 1 Col: 195 Unexpected end tag (tr). Ignored.
-Line: 1 Col: 203 This element (frame) has no end tag.
-Line: 1 Col: 210 This element (area) has no end tag.
-Line: 1 Col: 217 Unexpected end tag (link). Ignored.
-Line: 1 Col: 225 This element (param) has no end tag.
-Line: 1 Col: 230 This element (hr) has no end tag.
-Line: 1 Col: 238 This element (input) has no end tag.
-Line: 1 Col: 244 Unexpected end tag (col). Ignored.
-Line: 1 Col: 251 Unexpected end tag (base). Ignored.
-Line: 1 Col: 258 Unexpected end tag (meta). Ignored.
-Line: 1 Col: 269 This element (basefont) has no end tag.
-Line: 1 Col: 279 This element (bgsound) has no end tag.
-Line: 1 Col: 287 This element (embed) has no end tag.
-Line: 1 Col: 296 This element (spacer) has no end tag.
-Line: 1 Col: 300 Unexpected end tag (p). Ignored.
-Line: 1 Col: 305 End tag (dd) seen too early. Expected other end tag.
-Line: 1 Col: 310 End tag (dt) seen too early. Expected other end tag.
-Line: 1 Col: 320 Unexpected end tag (caption). Ignored.
-Line: 1 Col: 331 Unexpected end tag (colgroup). Ignored.
-Line: 1 Col: 339 Unexpected end tag (tbody). Ignored.
-Line: 1 Col: 347 Unexpected end tag (tfoot). Ignored.
-Line: 1 Col: 355 Unexpected end tag (thead). Ignored.
-Line: 1 Col: 365 End tag (address) seen too early. Expected other end tag.
-Line: 1 Col: 378 End tag (blockquote) seen too early. Expected other end tag.
-Line: 1 Col: 387 End tag (center) seen too early. Expected other end tag.
-Line: 1 Col: 393 Unexpected end tag (dir). Ignored.
-Line: 1 Col: 399 End tag (div) seen too early. Expected other end tag.
-Line: 1 Col: 404 End tag (dl) seen too early. Expected other end tag.
-Line: 1 Col: 415 End tag (fieldset) seen too early. Expected other end tag.
-Line: 1 Col: 425 End tag (listing) seen too early. Expected other end tag.
-Line: 1 Col: 432 End tag (menu) seen too early. Expected other end tag.
-Line: 1 Col: 437 End tag (ol) seen too early. Expected other end tag.
-Line: 1 Col: 442 End tag (ul) seen too early. Expected other end tag.
-Line: 1 Col: 447 End tag (li) seen too early. Expected other end tag.
-Line: 1 Col: 454 End tag (nobr) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 460 This element (wbr) has no end tag.
-Line: 1 Col: 476 End tag (button) seen too early. Expected other end tag.
-Line: 1 Col: 486 End tag (marquee) seen too early. Expected other end tag.
-Line: 1 Col: 495 End tag (object) seen too early. Expected other end tag.
-Line: 1 Col: 513 Unexpected end tag (html). Ignored.
-Line: 1 Col: 513 Unexpected end tag (frameset). Ignored.
-Line: 1 Col: 520 Unexpected end tag (head). Ignored.
-Line: 1 Col: 529 Unexpected end tag (iframe). Ignored.
-Line: 1 Col: 537 This element (image) has no end tag.
-Line: 1 Col: 547 This element (isindex) has no end tag.
-Line: 1 Col: 557 Unexpected end tag (noembed). Ignored.
-Line: 1 Col: 568 Unexpected end tag (noframes). Ignored.
-Line: 1 Col: 579 Unexpected end tag (noscript). Ignored.
-Line: 1 Col: 590 Unexpected end tag (optgroup). Ignored.
-Line: 1 Col: 599 Unexpected end tag (option). Ignored.
-Line: 1 Col: 611 Unexpected end tag (plaintext). Ignored.
-Line: 1 Col: 622 Unexpected end tag (textarea). Ignored.
+(1,9): expected-doctype-but-got-end-tag
+(1,9): unexpected-end-tag-before-html
+(1,13): unexpected-end-tag-before-html
+(1,18): unexpected-end-tag-before-html
+(1,22): unexpected-end-tag-before-html
+(1,26): unexpected-end-tag-before-html
+(1,35): unexpected-end-tag-before-html
+(1,39): unexpected-end-tag-before-html
+(1,47): unexpected-end-tag-before-html
+(1,52): unexpected-end-tag-before-html
+(1,58): unexpected-end-tag-before-html
+(1,64): unexpected-end-tag-before-html
+(1,72): unexpected-end-tag-before-html
+(1,79): unexpected-end-tag-before-html
+(1,88): unexpected-end-tag-before-html
+(1,93): unexpected-end-tag-before-html
+(1,98): unexpected-end-tag-before-html
+(1,103): unexpected-end-tag-before-html
+(1,108): unexpected-end-tag-before-html
+(1,113): unexpected-end-tag-before-html
+(1,118): unexpected-end-tag-before-html
+(1,130): unexpected-end-tag-after-body
+(1,130): unexpected-end-tag-treated-as
+(1,134): unexpected-end-tag
+(1,140): unexpected-end-tag
+(1,148): unexpected-end-tag
+(1,155): unexpected-end-tag
+(1,163): unexpected-end-tag
+(1,172): unexpected-end-tag
+(1,180): unexpected-end-tag
+(1,185): unexpected-end-tag
+(1,190): unexpected-end-tag
+(1,195): unexpected-end-tag
+(1,203): unexpected-end-tag
+(1,210): unexpected-end-tag
+(1,217): unexpected-end-tag
+(1,225): unexpected-end-tag
+(1,230): unexpected-end-tag
+(1,238): unexpected-end-tag
+(1,244): unexpected-end-tag
+(1,251): unexpected-end-tag
+(1,258): unexpected-end-tag
+(1,269): unexpected-end-tag
+(1,279): unexpected-end-tag
+(1,287): unexpected-end-tag
+(1,296): unexpected-end-tag
+(1,300): unexpected-end-tag
+(1,305): unexpected-end-tag
+(1,310): unexpected-end-tag
+(1,320): unexpected-end-tag
+(1,331): unexpected-end-tag
+(1,339): unexpected-end-tag
+(1,347): unexpected-end-tag
+(1,355): unexpected-end-tag
+(1,365): end-tag-too-early
+(1,378): end-tag-too-early
+(1,387): end-tag-too-early
+(1,393): end-tag-too-early
+(1,399): end-tag-too-early
+(1,404): end-tag-too-early
+(1,415): end-tag-too-early
+(1,425): end-tag-too-early
+(1,432): end-tag-too-early
+(1,437): end-tag-too-early
+(1,442): end-tag-too-early
+(1,447): unexpected-end-tag
+(1,454): unexpected-end-tag
+(1,460): unexpected-end-tag
+(1,467): unexpected-end-tag
+(1,476): end-tag-too-early
+(1,486): end-tag-too-early
+(1,495): end-tag-too-early
+(1,513): expected-eof-but-got-end-tag
+(1,513): unexpected-end-tag
+(1,520): unexpected-end-tag
+(1,529): unexpected-end-tag
+(1,537): unexpected-end-tag
+(1,547): unexpected-end-tag
+(1,557): unexpected-end-tag
+(1,568): unexpected-end-tag
+(1,579): unexpected-end-tag
+(1,590): unexpected-end-tag
+(1,599): unexpected-end-tag
+(1,611): unexpected-end-tag
+(1,622): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1821,116 +1827,117 @@ Line: 1 Col: 622 Unexpected end tag (textarea). Ignored.
 #data
 <table><tr></strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>
 #errors
-Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
-Line: 1 Col: 20 Unexpected end tag (strong) in table context caused voodoo mode.
-Line: 1 Col: 20 End tag (strong) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 24 Unexpected end tag (b) in table context caused voodoo mode.
-Line: 1 Col: 24 End tag (b) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 29 Unexpected end tag (em) in table context caused voodoo mode.
-Line: 1 Col: 29 End tag (em) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 33 Unexpected end tag (i) in table context caused voodoo mode.
-Line: 1 Col: 33 End tag (i) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 37 Unexpected end tag (u) in table context caused voodoo mode.
-Line: 1 Col: 37 End tag (u) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 46 Unexpected end tag (strike) in table context caused voodoo mode.
-Line: 1 Col: 46 End tag (strike) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 50 Unexpected end tag (s) in table context caused voodoo mode.
-Line: 1 Col: 50 End tag (s) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 58 Unexpected end tag (blink) in table context caused voodoo mode.
-Line: 1 Col: 58 Unexpected end tag (blink). Ignored.
-Line: 1 Col: 63 Unexpected end tag (tt) in table context caused voodoo mode.
-Line: 1 Col: 63 End tag (tt) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 69 Unexpected end tag (pre) in table context caused voodoo mode.
-Line: 1 Col: 69 End tag (pre) seen too early. Expected other end tag.
-Line: 1 Col: 75 Unexpected end tag (big) in table context caused voodoo mode.
-Line: 1 Col: 75 End tag (big) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 83 Unexpected end tag (small) in table context caused voodoo mode.
-Line: 1 Col: 83 End tag (small) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 90 Unexpected end tag (font) in table context caused voodoo mode.
-Line: 1 Col: 90 End tag (font) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 99 Unexpected end tag (select) in table context caused voodoo mode.
-Line: 1 Col: 99 Unexpected end tag (select). Ignored.
-Line: 1 Col: 104 Unexpected end tag (h1) in table context caused voodoo mode.
-Line: 1 Col: 104 End tag (h1) seen too early. Expected other end tag.
-Line: 1 Col: 109 Unexpected end tag (h2) in table context caused voodoo mode.
-Line: 1 Col: 109 End tag (h2) seen too early. Expected other end tag.
-Line: 1 Col: 114 Unexpected end tag (h3) in table context caused voodoo mode.
-Line: 1 Col: 114 End tag (h3) seen too early. Expected other end tag.
-Line: 1 Col: 119 Unexpected end tag (h4) in table context caused voodoo mode.
-Line: 1 Col: 119 End tag (h4) seen too early. Expected other end tag.
-Line: 1 Col: 124 Unexpected end tag (h5) in table context caused voodoo mode.
-Line: 1 Col: 124 End tag (h5) seen too early. Expected other end tag.
-Line: 1 Col: 129 Unexpected end tag (h6) in table context caused voodoo mode.
-Line: 1 Col: 129 End tag (h6) seen too early. Expected other end tag.
-Line: 1 Col: 136 Unexpected end tag (body) in the table row phase. Ignored.
-Line: 1 Col: 141 Unexpected end tag (br) in table context caused voodoo mode.
-Line: 1 Col: 141 Unexpected end tag (br). Treated as br element.
-Line: 1 Col: 145 Unexpected end tag (a) in table context caused voodoo mode.
-Line: 1 Col: 145 End tag (a) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 151 Unexpected end tag (img) in table context caused voodoo mode.
-Line: 1 Col: 151 This element (img) has no end tag.
-Line: 1 Col: 159 Unexpected end tag (title) in table context caused voodoo mode.
-Line: 1 Col: 159 Unexpected end tag (title). Ignored.
-Line: 1 Col: 166 Unexpected end tag (span) in table context caused voodoo mode.
-Line: 1 Col: 166 Unexpected end tag (span). Ignored.
-Line: 1 Col: 174 Unexpected end tag (style) in table context caused voodoo mode.
-Line: 1 Col: 174 Unexpected end tag (style). Ignored.
-Line: 1 Col: 183 Unexpected end tag (script) in table context caused voodoo mode.
-Line: 1 Col: 183 Unexpected end tag (script). Ignored.
-Line: 1 Col: 196 Unexpected end tag (th). Ignored.
-Line: 1 Col: 201 Unexpected end tag (td). Ignored.
-Line: 1 Col: 206 Unexpected end tag (tr). Ignored.
-Line: 1 Col: 214 This element (frame) has no end tag.
-Line: 1 Col: 221 This element (area) has no end tag.
-Line: 1 Col: 228 Unexpected end tag (link). Ignored.
-Line: 1 Col: 236 This element (param) has no end tag.
-Line: 1 Col: 241 This element (hr) has no end tag.
-Line: 1 Col: 249 This element (input) has no end tag.
-Line: 1 Col: 255 Unexpected end tag (col). Ignored.
-Line: 1 Col: 262 Unexpected end tag (base). Ignored.
-Line: 1 Col: 269 Unexpected end tag (meta). Ignored.
-Line: 1 Col: 280 This element (basefont) has no end tag.
-Line: 1 Col: 290 This element (bgsound) has no end tag.
-Line: 1 Col: 298 This element (embed) has no end tag.
-Line: 1 Col: 307 This element (spacer) has no end tag.
-Line: 1 Col: 311 Unexpected end tag (p). Ignored.
-Line: 1 Col: 316 End tag (dd) seen too early. Expected other end tag.
-Line: 1 Col: 321 End tag (dt) seen too early. Expected other end tag.
-Line: 1 Col: 331 Unexpected end tag (caption). Ignored.
-Line: 1 Col: 342 Unexpected end tag (colgroup). Ignored.
-Line: 1 Col: 350 Unexpected end tag (tbody). Ignored.
-Line: 1 Col: 358 Unexpected end tag (tfoot). Ignored.
-Line: 1 Col: 366 Unexpected end tag (thead). Ignored.
-Line: 1 Col: 376 End tag (address) seen too early. Expected other end tag.
-Line: 1 Col: 389 End tag (blockquote) seen too early. Expected other end tag.
-Line: 1 Col: 398 End tag (center) seen too early. Expected other end tag.
-Line: 1 Col: 404 Unexpected end tag (dir). Ignored.
-Line: 1 Col: 410 End tag (div) seen too early. Expected other end tag.
-Line: 1 Col: 415 End tag (dl) seen too early. Expected other end tag.
-Line: 1 Col: 426 End tag (fieldset) seen too early. Expected other end tag.
-Line: 1 Col: 436 End tag (listing) seen too early. Expected other end tag.
-Line: 1 Col: 443 End tag (menu) seen too early. Expected other end tag.
-Line: 1 Col: 448 End tag (ol) seen too early. Expected other end tag.
-Line: 1 Col: 453 End tag (ul) seen too early. Expected other end tag.
-Line: 1 Col: 458 End tag (li) seen too early. Expected other end tag.
-Line: 1 Col: 465 End tag (nobr) violates step 1, paragraph 1 of the adoption agency algorithm.
-Line: 1 Col: 471 This element (wbr) has no end tag.
-Line: 1 Col: 487 End tag (button) seen too early. Expected other end tag.
-Line: 1 Col: 497 End tag (marquee) seen too early. Expected other end tag.
-Line: 1 Col: 506 End tag (object) seen too early. Expected other end tag.
-Line: 1 Col: 524 Unexpected end tag (html). Ignored.
-Line: 1 Col: 524 Unexpected end tag (frameset). Ignored.
-Line: 1 Col: 531 Unexpected end tag (head). Ignored.
-Line: 1 Col: 540 Unexpected end tag (iframe). Ignored.
-Line: 1 Col: 548 This element (image) has no end tag.
-Line: 1 Col: 558 This element (isindex) has no end tag.
-Line: 1 Col: 568 Unexpected end tag (noembed). Ignored.
-Line: 1 Col: 579 Unexpected end tag (noframes). Ignored.
-Line: 1 Col: 590 Unexpected end tag (noscript). Ignored.
-Line: 1 Col: 601 Unexpected end tag (optgroup). Ignored.
-Line: 1 Col: 610 Unexpected end tag (option). Ignored.
-Line: 1 Col: 622 Unexpected end tag (plaintext). Ignored.
-Line: 1 Col: 633 Unexpected end tag (textarea). Ignored.
+(1,7): expected-doctype-but-got-start-tag
+(1,20): unexpected-end-tag-implies-table-voodoo
+(1,20): unexpected-end-tag
+(1,24): unexpected-end-tag-implies-table-voodoo
+(1,24): unexpected-end-tag
+(1,29): unexpected-end-tag-implies-table-voodoo
+(1,29): unexpected-end-tag
+(1,33): unexpected-end-tag-implies-table-voodoo
+(1,33): unexpected-end-tag
+(1,37): unexpected-end-tag-implies-table-voodoo
+(1,37): unexpected-end-tag
+(1,46): unexpected-end-tag-implies-table-voodoo
+(1,46): unexpected-end-tag
+(1,50): unexpected-end-tag-implies-table-voodoo
+(1,50): unexpected-end-tag
+(1,58): unexpected-end-tag-implies-table-voodoo
+(1,58): unexpected-end-tag
+(1,63): unexpected-end-tag-implies-table-voodoo
+(1,63): unexpected-end-tag
+(1,69): unexpected-end-tag-implies-table-voodoo
+(1,69): end-tag-too-early
+(1,75): unexpected-end-tag-implies-table-voodoo
+(1,75): unexpected-end-tag
+(1,83): unexpected-end-tag-implies-table-voodoo
+(1,83): unexpected-end-tag
+(1,90): unexpected-end-tag-implies-table-voodoo
+(1,90): unexpected-end-tag
+(1,99): unexpected-end-tag-implies-table-voodoo
+(1,99): unexpected-end-tag
+(1,104): unexpected-end-tag-implies-table-voodoo
+(1,104): end-tag-too-early
+(1,109): unexpected-end-tag-implies-table-voodoo
+(1,109): end-tag-too-early
+(1,114): unexpected-end-tag-implies-table-voodoo
+(1,114): end-tag-too-early
+(1,119): unexpected-end-tag-implies-table-voodoo
+(1,119): end-tag-too-early
+(1,124): unexpected-end-tag-implies-table-voodoo
+(1,124): end-tag-too-early
+(1,129): unexpected-end-tag-implies-table-voodoo
+(1,129): end-tag-too-early
+(1,136): unexpected-end-tag-in-table-row
+(1,141): unexpected-end-tag-implies-table-voodoo
+(1,141): unexpected-end-tag-treated-as
+(1,145): unexpected-end-tag-implies-table-voodoo
+(1,145): unexpected-end-tag
+(1,151): unexpected-end-tag-implies-table-voodoo
+(1,151): unexpected-end-tag
+(1,159): unexpected-end-tag-implies-table-voodoo
+(1,159): unexpected-end-tag
+(1,166): unexpected-end-tag-implies-table-voodoo
+(1,166): unexpected-end-tag
+(1,174): unexpected-end-tag-implies-table-voodoo
+(1,174): unexpected-end-tag
+(1,183): unexpected-end-tag-implies-table-voodoo
+(1,183): unexpected-end-tag
+(1,196): unexpected-end-tag
+(1,201): unexpected-end-tag
+(1,206): unexpected-end-tag
+(1,214): unexpected-end-tag
+(1,221): unexpected-end-tag
+(1,228): unexpected-end-tag
+(1,236): unexpected-end-tag
+(1,241): unexpected-end-tag
+(1,249): unexpected-end-tag
+(1,255): unexpected-end-tag
+(1,262): unexpected-end-tag
+(1,269): unexpected-end-tag
+(1,280): unexpected-end-tag
+(1,290): unexpected-end-tag
+(1,298): unexpected-end-tag
+(1,307): unexpected-end-tag
+(1,311): unexpected-end-tag
+(1,316): unexpected-end-tag
+(1,321): unexpected-end-tag
+(1,331): unexpected-end-tag
+(1,342): unexpected-end-tag
+(1,350): unexpected-end-tag
+(1,358): unexpected-end-tag
+(1,366): unexpected-end-tag
+(1,376): end-tag-too-early
+(1,389): end-tag-too-early
+(1,398): end-tag-too-early
+(1,404): end-tag-too-early
+(1,410): end-tag-too-early
+(1,415): end-tag-too-early
+(1,426): end-tag-too-early
+(1,436): end-tag-too-early
+(1,443): end-tag-too-early
+(1,448): end-tag-too-early
+(1,453): end-tag-too-early
+(1,458): unexpected-end-tag
+(1,465): unexpected-end-tag
+(1,471): unexpected-end-tag
+(1,478): unexpected-end-tag
+(1,487): end-tag-too-early
+(1,497): end-tag-too-early
+(1,506): end-tag-too-early
+(1,524): expected-eof-but-got-end-tag
+(1,524): unexpected-end-tag
+(1,531): unexpected-end-tag
+(1,540): unexpected-end-tag
+(1,548): unexpected-end-tag
+(1,558): unexpected-end-tag
+(1,568): unexpected-end-tag
+(1,579): unexpected-end-tag
+(1,590): unexpected-end-tag
+(1,601): unexpected-end-tag
+(1,610): unexpected-end-tag
+(1,622): unexpected-end-tag
+(1,633): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1944,8 +1951,8 @@ Line: 1 Col: 633 Unexpected end tag (textarea). Ignored.
 #data
 <frameset>
 #errors
-Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
-Line: 1 Col: 10 Expected closing tag. Unexpected end of file.
+(1,10): expected-doctype-but-got-start-tag
+(1,10): eof-in-frameset
 #document
 | <html>
 |   <head>
index 4f8df86..87d9478 100644 (file)
@@ -11,7 +11,7 @@
 #data
 <!DOCTYPE html><svg></svg><![CDATA[a]]>
 #errors
-29: Bogus comment
+(1,28) expected-dashes-or-doctype
 #document
 | <!DOCTYPE html>
 | <html>
@@ -33,8 +33,8 @@
 #data
 <!DOCTYPE html><body><select><svg></svg></select>
 #errors
-35: Stray “svg” start tag.
-42: Stray end tag “svg”
+(1,34) unexpected-start-tag-in-select
+(1,40) unexpected-end-tag-in-select
 #document
 | <!DOCTYPE html>
 | <html>
@@ -45,8 +45,8 @@
 #data
 <!DOCTYPE html><body><select><option><svg></svg></option></select>
 #errors
-43: Stray “svg” start tag.
-50: Stray end tag “svg”
+(1,42) unexpected-start-tag-in-select
+(1,48) unexpected-end-tag-in-select
 #document
 | <!DOCTYPE html>
 | <html>
@@ -58,8 +58,7 @@
 #data
 <!DOCTYPE html><body><table><svg></svg></table>
 #errors
-34: Start tag “svg” seen in “table”.
-41: Stray end tag “svg”.
+(1,33) foster-parenting-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -71,9 +70,7 @@
 #data
 <!DOCTYPE html><body><table><svg><g>foo</g></svg></table>
 #errors
-34: Start tag “svg” seen in “table”.
-46: Stray end tag “g”.
-53: Stray end tag “svg”.
+(1,33) foster-parenting-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body><table><svg><g>foo</g><g>bar</g></svg></table>
 #errors
-34: Start tag “svg” seen in “table”.
-46: Stray end tag “g”.
-58: Stray end tag “g”.
-65: Stray end tag “svg”.
+(1,33) foster-parenting-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body><table><tbody><svg><g>foo</g><g>bar</g></svg></tbody></table>
 #errors
-41: Start tag “svg” seen in “table”.
-53: Stray end tag “g”.
-65: Stray end tag “g”.
-72: Stray end tag “svg”.
+(1,40) foster-parenting-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body><table><tbody><tr><svg><g>foo</g><g>bar</g></svg></tr></tbody></table>
 #errors
-45: Start tag “svg” seen in “table”.
-57: Stray end tag “g”.
-69: Stray end tag “g”.
-76: Stray end tag “svg”.
+(1,44) foster-parenting-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
 #errors
-70: HTML start tag “p” in a foreign namespace context.
-81: “table” closed but “caption” was still open.
+(1,65) unexpected-html-element-in-foreign-content
+(1,76) XXX-undefined-error
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g>baz</table><p>quux
 #errors
-78: “table” closed but “caption” was still open.
-78: Unclosed elements on stack.
+(1,73) unexpected-end-tag
+(1,73) expected-one-end-tag-but-got-another
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body><table><colgroup><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
 #errors
-44: Start tag “svg” seen in “table”.
-56: Stray end tag “g”.
-68: Stray end tag “g”.
-71: HTML start tag “p” in a foreign namespace context.
-71: Start tag “p” seen in “table”.
+(1,43) foster-parenting-start-tag
+(1,66) foster-parenting-start-tag
+(1,67) foster-parenting-character
+(1,68) foster-parenting-character
+(1,69) foster-parenting-character
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body><table><tr><td><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
 #errors
-50: Stray “svg” start tag.
-54: Stray “g” start tag.
-62: Stray end tag “g”
-66: Stray “g” start tag.
-74: Stray end tag “g”
-77: Stray “p” start tag.
-88: “table” end tag with “select” open.
+(1,49) unexpected-start-tag-in-select
+(1,52) unexpected-start-tag-in-select
+(1,59) unexpected-end-tag-in-select
+(1,62) unexpected-start-tag-in-select
+(1,69) unexpected-end-tag-in-select
+(1,72) unexpected-start-tag-in-select
+(1,83) unexpected-table-element-end-tag-in-select-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body><table><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
 #errors
-36: Start tag “select” seen in “table”.
-42: Stray “svg” start tag.
-46: Stray “g” start tag.
-54: Stray end tag “g”
-58: Stray “g” start tag.
-66: Stray end tag “g”
-69: Stray “p” start tag.
-80: “table” end tag with “select” open.
+(1,36) unexpected-start-tag-implies-table-voodoo
+(1,41) unexpected-start-tag-in-select
+(1,44) unexpected-start-tag-in-select
+(1,51) unexpected-end-tag-in-select
+(1,54) unexpected-start-tag-in-select
+(1,61) unexpected-end-tag-in-select
+(1,64) unexpected-start-tag-in-select
+(1,75) unexpected-table-element-end-tag-in-select-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body></body></html><svg><g>foo</g><g>bar</g><p>baz
 #errors
-41: Stray “svg” start tag.
-68: HTML start tag “p” in a foreign namespace context.
+(1,40) expected-eof-but-got-start-tag
+(1,63) unexpected-html-element-in-foreign-content
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><body></body><svg><g>foo</g><g>bar</g><p>baz
 #errors
-34: Stray “svg” start tag.
-61: HTML start tag “p” in a foreign namespace context.
+(1,33) unexpected-start-tag-after-body
+(1,56) unexpected-html-element-in-foreign-content
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><frameset><svg><g></g><g></g><p><span>
 #errors
-31: Stray “svg” start tag.
-35: Stray “g” start tag.
-40: Stray end tag “g”
-44: Stray “g” start tag.
-49: Stray end tag “g”
-52: Stray “p” start tag.
-58: Stray “span” start tag.
-58: End of file seen and there were open elements.
+(1,30) unexpected-start-tag-in-frameset
+(1,33) unexpected-start-tag-in-frameset
+(1,37) unexpected-end-tag-in-frameset
+(1,40) unexpected-start-tag-in-frameset
+(1,44) unexpected-end-tag-in-frameset
+(1,47) unexpected-start-tag-in-frameset
+(1,53) unexpected-start-tag-in-frameset
+(1,53) eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><frameset></frameset><svg><g></g><g></g><p><span>
 #errors
-42: Stray “svg” start tag.
-46: Stray “g” start tag.
-51: Stray end tag “g”
-55: Stray “g” start tag.
-60: Stray end tag “g”
-63: Stray “p” start tag.
-69: Stray “span” start tag.
+(1,41) unexpected-start-tag-after-frameset
+(1,44) unexpected-start-tag-after-frameset
+(1,48) unexpected-end-tag-after-frameset
+(1,51) unexpected-start-tag-after-frameset
+(1,55) unexpected-end-tag-after-frameset
+(1,58) unexpected-start-tag-after-frameset
+(1,64) unexpected-start-tag-after-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <svg></path>
 #errors
+(1,5) expected-doctype-but-got-start-tag
+(1,12) unexpected-end-tag
+(1,12) unexpected-end-tag
+(1,12) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <div><svg></div>a
 #errors
+(1,5) expected-doctype-but-got-start-tag
+(1,16) unexpected-end-tag
+(1,16) end-tag-too-early
 #document
 | <html>
 |   <head>
 #data
 <div><svg><path></div>a
 #errors
+(1,5) expected-doctype-but-got-start-tag
+(1,22) unexpected-end-tag
+(1,22) end-tag-too-early
 #document
 | <html>
 |   <head>
 #data
 <div><svg><path></svg><path>
 #errors
+(1,5) expected-doctype-but-got-start-tag
+(1,22) unexpected-end-tag
+(1,28) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <div><svg><path><foreignObject><math></div>a
 #errors
+(1,5) expected-doctype-but-got-start-tag
+(1,43) unexpected-end-tag
+(1,43) end-tag-too-early
+(1,44) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <div><svg><path><foreignObject><p></div>a
 #errors
+(1,5) expected-doctype-but-got-start-tag
+(1,40) end-tag-too-early
+(1,41) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <!DOCTYPE html><svg><desc><div><svg><ul>a
 #errors
-40: HTML start tag “ul” in a foreign namespace context.
-41: End of file in a foreign namespace context.
+(1,40) unexpected-html-element-in-foreign-content
+(1,41) expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><svg><desc><svg><ul>a
 #errors
-35: HTML start tag “ul” in a foreign namespace context.
-36: End of file in a foreign namespace context.
+(1,35) unexpected-html-element-in-foreign-content
+(1,36) expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><p><svg><desc><p>
 #errors
+(1,32) expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><p><svg><title><p>
 #errors
+(1,33) expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <div><svg><path><foreignObject><p></foreignObject><p>
 #errors
+(1,5) expected-doctype-but-got-start-tag
+(1,50) unexpected-end-tag
+(1,53) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mi><div><object><div><span></span></div></object></div></mi><mi>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,71) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mi><svg><foreignObject><div><div></div></div></foreignObject></svg></mi><mi>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,83) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <svg><script></script><path>
 #errors
+(1,5) expected-doctype-but-got-start-tag
+(1,28) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <table><svg></svg><tr>
 #errors
+(1,7) expected-doctype-but-got-start-tag
+(1,12) unexpected-start-tag-implies-table-voodoo
+(1,22) eof-in-table
 #document
 | <html>
 |   <head>
 #data
 <math><mi><mglyph>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,18) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mi><malignmark>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,22) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mo><mglyph>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,18) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mo><malignmark>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,22) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mn><mglyph>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,18) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mn><malignmark>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,22) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><ms><mglyph>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,18) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><ms><malignmark>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,22) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mtext><mglyph>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,21) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><mtext><malignmark>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,25) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><annotation-xml><svg></svg></annotation-xml><mi>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,54) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><annotation-xml><svg><foreignObject><div><math><mi></mi></math><span></span></div></foreignObject><path></path></svg></annotation-xml><mi>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,144) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
 #data
 <math><annotation-xml><svg><foreignObject><math><mi><svg></svg></mi><mo></mo></math><span></span></foreignObject><path></path></svg></annotation-xml><mi>
 #errors
+(1,6) expected-doctype-but-got-start-tag
+(1,153) expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
index b8713f8..a08b764 100644 (file)
@@ -22,7 +22,7 @@
 #data
 <!DOCTYPE html><html><html abc:def=gh><xyz:abc></xyz:abc>
 #errors
-15: Unexpected start tag html
+(1,38): non-html-root
 #document
 | <!DOCTYPE html>
 | <html>
@@ -34,7 +34,7 @@
 #data
 <!DOCTYPE html><html xml:lang=bar><html xml:lang=foo>
 #errors
-15: Unexpected start tag html
+(1,53): non-html-root
 #document
 | <!DOCTYPE html>
 | <html>
@@ -55,6 +55,7 @@
 #data
 <!DOCTYPE html><html 123=456><html 789=012>
 #errors
+(1,43): non-html-root
 #document
 | <!DOCTYPE html>
 | <html>
index 6ce1c0d..93d06a8 100644 (file)
@@ -1,8 +1,8 @@
 #data
 <!DOCTYPE html><p><b><i><u></p> <p>X
 #errors
-Line: 1 Col: 31 Unexpected end tag (p). Ignored.
-Line: 1 Col: 36 Expected closing tag. Unexpected end of file.
+(1,31): unexpected-end-tag
+(1,36): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -23,9 +23,9 @@ Line: 1 Col: 36 Expected closing tag. Unexpected end of file.
 <p><b><i><u></p>
 <p>X
 #errors
-Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
-Line: 1 Col: 16 Unexpected end tag (p). Ignored.
-Line: 2 Col: 4 Expected closing tag. Unexpected end of file.
+(1,3): expected-doctype-but-got-start-tag
+(1,16): unexpected-end-tag
+(2,4): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -45,7 +45,8 @@ Line: 2 Col: 4 Expected closing tag. Unexpected end of file.
 #data
 <!doctype html></html> <head>
 #errors
-Line: 1 Col: 22 Unexpected end tag (html) after the (implied) root element.
+(1,29): expected-eof-but-got-start-tag
+(1,29): unexpected-start-tag-ignored
 #document
 | <!DOCTYPE html>
 | <html>
@@ -56,7 +57,7 @@ Line: 1 Col: 22 Unexpected end tag (html) after the (implied) root element.
 #data
 <!doctype html></body><meta>
 #errors
-Line: 1 Col: 22 Unexpected end tag (body) after the (implied) root element.
+(1,28): unexpected-start-tag-after-body
 #document
 | <!DOCTYPE html>
 | <html>
@@ -67,8 +68,7 @@ Line: 1 Col: 22 Unexpected end tag (body) after the (implied) root element.
 #data
 <html></html><!-- foo -->
 #errors
-Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
-Line: 1 Col: 13 Unexpected end tag (html) after the (implied) root element.
+(1,6): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -78,7 +78,7 @@ Line: 1 Col: 13 Unexpected end tag (html) after the (implied) root element.
 #data
 <!doctype html></body><title>X</title>
 #errors
-Line: 1 Col: 22 Unexpected end tag (body) after the (implied) root element.
+(1,29): unexpected-start-tag-after-body
 #document
 | <!DOCTYPE html>
 | <html>
@@ -90,8 +90,9 @@ Line: 1 Col: 22 Unexpected end tag (body) after the (implied) root element.
 #data
 <!doctype html><table> X<meta></table>
 #errors
-Line: 1 Col: 24 Unexpected non-space characters in table context caused voodoo mode.
-Line: 1 Col: 30 Unexpected start tag (meta) in table context caused voodoo mode.
+(1,23): foster-parenting-character
+(1,24): foster-parenting-character
+(1,30): foster-parenting-start-character
 #document
 | <!DOCTYPE html>
 | <html>
@@ -104,7 +105,8 @@ Line: 1 Col: 30 Unexpected start tag (meta) in table context caused voodoo mode.
 #data
 <!doctype html><table> x</table>
 #errors
-Line: 1 Col: 24 Unexpected non-space characters in table context caused voodoo mode.
+(1,23): foster-parenting-character
+(1,24): foster-parenting-character
 #document
 | <!DOCTYPE html>
 | <html>
@@ -116,7 +118,9 @@ Line: 1 Col: 24 Unexpected non-space characters in table context caused voodoo m
 #data
 <!doctype html><table> x </table>
 #errors
-Line: 1 Col: 25 Unexpected non-space characters in table context caused voodoo mode.
+(1,23): foster-parenting-character
+(1,24): foster-parenting-character
+(1,25): foster-parenting-character
 #document
 | <!DOCTYPE html>
 | <html>
@@ -128,7 +132,8 @@ Line: 1 Col: 25 Unexpected non-space characters in table context caused voodoo m
 #data
 <!doctype html><table><tr> x</table>
 #errors
-Line: 1 Col: 28 Unexpected non-space characters in table context caused voodoo mode.
+(1,27): foster-parenting-character
+(1,28): foster-parenting-character
 #document
 | <!DOCTYPE html>
 | <html>
@@ -142,7 +147,7 @@ Line: 1 Col: 28 Unexpected non-space characters in table context caused voodoo m
 #data
 <!doctype html><table>X<style> <tr>x </style> </table>
 #errors
-Line: 1 Col: 23 Unexpected non-space characters in table context caused voodoo mode.
+(1,23): foster-parenting-character
 #document
 | <!DOCTYPE html>
 | <html>
@@ -157,8 +162,11 @@ Line: 1 Col: 23 Unexpected non-space characters in table context caused voodoo m
 #data
 <!doctype html><div><table><a>foo</a> <tr><td>bar</td> </tr></table></div>
 #errors
-Line: 1 Col: 30 Unexpected start tag (a) in table context caused voodoo mode.
-Line: 1 Col: 37 Unexpected end tag (a) in table context caused voodoo mode.
+(1,30): foster-parenting-start-tag
+(1,31): foster-parenting-character
+(1,32): foster-parenting-character
+(1,33): foster-parenting-character
+(1,37): foster-parenting-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -178,14 +186,13 @@ Line: 1 Col: 37 Unexpected end tag (a) in table context caused voodoo mode.
 #data
 <frame></frame></frame><frameset><frame><frameset><frame></frameset><noframes></frameset><noframes>
 #errors
-6: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
-13: Stray start tag “frame”.
-21: Stray end tag “frame”.
-29: Stray end tag “frame”.
-39: “frameset” start tag after “body” already open.
-105: End of file seen inside an [R]CDATA element.
-105: End of file seen and there were open elements.
-XXX: These errors are wrong, please fix me!
+(1,7): expected-doctype-but-got-start-tag
+(1,7): unexpected-start-tag-ignored
+(1,15): unexpected-end-tag
+(1,23): unexpected-end-tag
+(1,33): unexpected-start-tag
+(1,99): expected-named-closing-tag-but-got-eof
+(1,99): eof-in-frameset
 #document
 | <html>
 |   <head>
@@ -199,7 +206,8 @@ XXX: These errors are wrong, please fix me!
 #data
 <!DOCTYPE html><object></html>
 #errors
-1: Expected closing tag. Unexpected end of file
+(1,30): expected-body-in-scope
+(1,30): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
index c8ef66f..c8f6d43 100644 (file)
@@ -1,7 +1,7 @@
 #data
 <!doctype html><script>
 #errors
-Line: 1 Col: 23 Unexpected end of file. Expected end tag (script).
+(1,23): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -12,7 +12,7 @@ Line: 1 Col: 23 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script>a
 #errors
-Line: 1 Col: 24 Unexpected end of file. Expected end tag (script).
+(1,24): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -24,7 +24,7 @@ Line: 1 Col: 24 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><
 #errors
-Line: 1 Col: 24 Unexpected end of file. Expected end tag (script).
+(1,24): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -36,7 +36,7 @@ Line: 1 Col: 24 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></
 #errors
-Line: 1 Col: 25 Unexpected end of file. Expected end tag (script).
+(1,25): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -48,7 +48,7 @@ Line: 1 Col: 25 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></S
 #errors
-Line: 1 Col: 26 Unexpected end of file. Expected end tag (script).
+(1,26): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -60,7 +60,7 @@ Line: 1 Col: 26 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></SC
 #errors
-Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
+(1,27): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -72,7 +72,7 @@ Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></SCR
 #errors
-Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
+(1,28): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -84,7 +84,7 @@ Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></SCRI
 #errors
-Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
+(1,29): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -96,7 +96,7 @@ Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></SCRIP
 #errors
-Line: 1 Col: 30 Unexpected end of file. Expected end tag (script).
+(1,30): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -108,7 +108,7 @@ Line: 1 Col: 30 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></SCRIPT
 #errors
-Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
+(1,31): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -120,7 +120,8 @@ Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></SCRIPT 
 #errors
-Line: 1 Col: 32 Unexpected end of file. Expected end tag (script).
+(1,32): expected-attribute-name-but-got-eof
+(1,32): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -131,7 +132,7 @@ Line: 1 Col: 32 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></s
 #errors
-Line: 1 Col: 26 Unexpected end of file. Expected end tag (script).
+(1,26): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -143,7 +144,7 @@ Line: 1 Col: 26 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></sc
 #errors
-Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
+(1,27): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -155,7 +156,7 @@ Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></scr
 #errors
-Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
+(1,28): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -167,7 +168,7 @@ Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></scri
 #errors
-Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
+(1,29): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -179,7 +180,7 @@ Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></scrip
 #errors
-Line: 1 Col: 30 Unexpected end of file. Expected end tag (script).
+(1,30): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -191,7 +192,7 @@ Line: 1 Col: 30 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></script
 #errors
-Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
+(1,31): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -203,7 +204,8 @@ Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script></script 
 #errors
-Line: 1 Col: 32 Unexpected end of file. Expected end tag (script).
+(1,32): expected-attribute-name-but-got-eof
+(1,32): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -214,7 +216,7 @@ Line: 1 Col: 32 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!
 #errors
-Line: 1 Col: 25 Unexpected end of file. Expected end tag (script).
+(1,25): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -226,7 +228,7 @@ Line: 1 Col: 25 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!a
 #errors
-Line: 1 Col: 26 Unexpected end of file. Expected end tag (script).
+(1,26): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -238,7 +240,7 @@ Line: 1 Col: 26 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!-
 #errors
-Line: 1 Col: 26 Unexpected end of file. Expected end tag (script).
+(1,26): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -250,7 +252,7 @@ Line: 1 Col: 26 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!-a
 #errors
-Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
+(1,27): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -262,7 +264,8 @@ Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--
 #errors
-Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
+(1,27): expected-named-closing-tag-but-got-eof
+(1,27): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -274,7 +277,8 @@ Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--a
 #errors
-Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
+(1,28): expected-named-closing-tag-but-got-eof
+(1,28): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -286,7 +290,8 @@ Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<
 #errors
-Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
+(1,28): expected-named-closing-tag-but-got-eof
+(1,28): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -298,7 +303,8 @@ Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<a
 #errors
-Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
+(1,29): expected-named-closing-tag-but-got-eof
+(1,29): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -310,7 +316,8 @@ Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--</
 #errors
-Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
+(1,29): expected-named-closing-tag-but-got-eof
+(1,29): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -322,7 +329,8 @@ Line: 1 Col: 27 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--</script
 #errors
-Line: 1 Col: 35 Unexpected end of file. Expected end tag (script).
+(1,35): expected-named-closing-tag-but-got-eof
+(1,35): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -334,7 +342,8 @@ Line: 1 Col: 35 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--</script 
 #errors
-Line: 1 Col: 36 Unexpected end of file. Expected end tag (script).
+(1,36): expected-attribute-name-but-got-eof
+(1,36): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -346,7 +355,8 @@ Line: 1 Col: 36 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<s
 #errors
-Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
+(1,29): expected-named-closing-tag-but-got-eof
+(1,29): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -358,7 +368,8 @@ Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script
 #errors
-Line: 1 Col: 34 Unexpected end of file. Expected end tag (script).
+(1,34): expected-named-closing-tag-but-got-eof
+(1,34): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -370,7 +381,8 @@ Line: 1 Col: 34 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script 
 #errors
-Line: 1 Col: 35 Unexpected end of file. Expected end tag (script).
+(1,35): eof-in-script-in-script
+(1,35): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -382,7 +394,8 @@ Line: 1 Col: 35 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script <
 #errors
-Line: 1 Col: 36 Unexpected end of file. Expected end tag (script).
+(1,36): eof-in-script-in-script
+(1,36): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -394,7 +407,8 @@ Line: 1 Col: 36 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script <a
 #errors
-Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
+(1,37): eof-in-script-in-script
+(1,37): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -406,7 +420,8 @@ Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </
 #errors
-Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
+(1,37): eof-in-script-in-script
+(1,37): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -418,7 +433,8 @@ Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </s
 #errors
-Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
+(1,38): eof-in-script-in-script
+(1,38): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -430,7 +446,8 @@ Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script
 #errors
-Line: 1 Col: 43 Unexpected end of file. Expected end tag (script).
+(1,43): eof-in-script-in-script
+(1,43): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -442,7 +459,8 @@ Line: 1 Col: 43 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </scripta
 #errors
-Line: 1 Col: 44 Unexpected end of file. Expected end tag (script).
+(1,44): eof-in-script-in-script
+(1,44): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -454,7 +472,8 @@ Line: 1 Col: 44 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script 
 #errors
-Line: 1 Col: 44 Unexpected end of file. Expected end tag (script).
+(1,44): expected-named-closing-tag-but-got-eof
+(1,44): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -466,7 +485,8 @@ Line: 1 Col: 44 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script>
 #errors
-Line: 1 Col: 44 Unexpected end of file. Expected end tag (script).
+(1,44): expected-named-closing-tag-but-got-eof
+(1,44): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -478,7 +498,8 @@ Line: 1 Col: 44 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script/
 #errors
-Line: 1 Col: 44 Unexpected end of file. Expected end tag (script).
+(1,44): expected-named-closing-tag-but-got-eof
+(1,44): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -490,7 +511,8 @@ Line: 1 Col: 44 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script <
 #errors
-Line: 1 Col: 45 Unexpected end of file. Expected end tag (script).
+(1,45): expected-named-closing-tag-but-got-eof
+(1,45): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -502,7 +524,8 @@ Line: 1 Col: 45 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script <a
 #errors
-Line: 1 Col: 46 Unexpected end of file. Expected end tag (script).
+(1,46): expected-named-closing-tag-but-got-eof
+(1,46): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -514,7 +537,8 @@ Line: 1 Col: 46 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script </
 #errors
-Line: 1 Col: 46 Unexpected end of file. Expected end tag (script).
+(1,46): expected-named-closing-tag-but-got-eof
+(1,46): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -526,7 +550,8 @@ Line: 1 Col: 46 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script </script
 #errors
-Line: 1 Col: 52 Unexpected end of file. Expected end tag (script).
+(1,52): expected-named-closing-tag-but-got-eof
+(1,52): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -538,7 +563,8 @@ Line: 1 Col: 52 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script </script 
 #errors
-Line: 1 Col: 53 Unexpected end of file. Expected end tag (script).
+(1,53): expected-attribute-name-but-got-eof
+(1,53): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -550,7 +576,8 @@ Line: 1 Col: 53 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script </script </script/
 #errors
-Line: 1 Col: 53 Unexpected end of file. Expected end tag (script).
+(1,53): unexpected-EOF-after-solidus-in-tag
+(1,53): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -573,7 +600,8 @@ Line: 1 Col: 53 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script -
 #errors
-Line: 1 Col: 36 Unexpected end of file. Expected end tag (script).
+(1,36): eof-in-script-in-script
+(1,36): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -585,7 +613,8 @@ Line: 1 Col: 36 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script -a
 #errors
-Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
+(1,37): eof-in-script-in-script
+(1,37): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -597,7 +626,8 @@ Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script -<
 #errors
-Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
+(1,37): eof-in-script-in-script
+(1,37): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -609,7 +639,8 @@ Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script --
 #errors
-Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
+(1,37): eof-in-script-in-script
+(1,37): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -621,7 +652,8 @@ Line: 1 Col: 37 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script --a
 #errors
-Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
+(1,38): eof-in-script-in-script
+(1,38): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -633,7 +665,8 @@ Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script --<
 #errors
-Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
+(1,38): eof-in-script-in-script
+(1,38): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -645,7 +678,7 @@ Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script -->
 #errors
-Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
+(1,38): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -657,7 +690,7 @@ Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script --><
 #errors
-Line: 1 Col: 39 Unexpected end of file. Expected end tag (script).
+(1,39): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -669,7 +702,7 @@ Line: 1 Col: 39 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script --></
 #errors
-Line: 1 Col: 40 Unexpected end of file. Expected end tag (script).
+(1,40): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -681,7 +714,7 @@ Line: 1 Col: 40 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script --></script
 #errors
-Line: 1 Col: 46 Unexpected end of file. Expected end tag (script).
+(1,46): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -693,7 +726,8 @@ Line: 1 Col: 46 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script --></script 
 #errors
-Line: 1 Col: 47 Unexpected end of file. Expected end tag (script).
+(1,47): expected-attribute-name-but-got-eof
+(1,47): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -705,7 +739,8 @@ Line: 1 Col: 47 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script --></script/
 #errors
-Line: 1 Col: 47 Unexpected end of file. Expected end tag (script).
+(1,47): unexpected-EOF-after-solidus-in-tag
+(1,47): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -816,7 +851,8 @@ Line: 1 Col: 47 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<script>--!></script>X
 #errors
-Line: 1 Col: 49 Unexpected end of file. Expected end tag (script).
+(1,49): expected-named-closing-tag-but-got-eof
+(1,49): unexpected-EOF-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -828,7 +864,7 @@ Line: 1 Col: 49 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><script><!--<scr'+'ipt></script>--></script>
 #errors
-Line: 1 Col: 59 Unexpected end tag (script).
+(1,59): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -841,7 +877,8 @@ Line: 1 Col: 59 Unexpected end tag (script).
 #data
 <!doctype html><script><!--<script></scr'+'ipt></script>X
 #errors
-Line: 1 Col: 57 Unexpected end of file. Expected end tag (script).
+(1,57): expected-named-closing-tag-but-got-eof
+(1,57): unexpected-eof-in-text-mode
 #document
 | <!DOCTYPE html>
 | <html>
@@ -853,7 +890,7 @@ Line: 1 Col: 57 Unexpected end of file. Expected end tag (script).
 #data
 <!doctype html><style><!--<style></style>--></style>
 #errors
-Line: 1 Col: 52 Unexpected end tag (style).
+(1,52): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -878,7 +915,7 @@ Line: 1 Col: 52 Unexpected end tag (style).
 #data
 <!doctype html><style><!--...</style>...--></style>
 #errors
-Line: 1 Col: 51 Unexpected end tag (style).
+(1,51): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -903,7 +940,7 @@ Line: 1 Col: 51 Unexpected end tag (style).
 #data
 <!doctype html><style><!--...<style><!--...--!></style>--></style>
 #errors
-Line: 1 Col: 66 Unexpected end tag (style).
+(1,66): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -930,7 +967,7 @@ Line: 1 Col: 66 Unexpected end tag (style).
 #data
 <!doctype html><style>...<style><!--...</style><!-- --></style>
 #errors
-Line: 1 Col: 63 Unexpected end tag (style).
+(1,63): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -955,7 +992,7 @@ Line: 1 Col: 63 Unexpected end tag (style).
 #data
 <!doctype html><title><!--<title></title>--></title>
 #errors
-Line: 1 Col: 52 Unexpected end tag (title).
+(1,52): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -979,7 +1016,7 @@ Line: 1 Col: 52 Unexpected end tag (title).
 #data
 <!doctype html><title>foo/title><link></head><body>X
 #errors
-Line: 1 Col: 52 Unexpected end of file. Expected end tag (title).
+(1,52): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -991,7 +1028,7 @@ Line: 1 Col: 52 Unexpected end of file. Expected end tag (title).
 #data
 <!doctype html><noscript><!--<noscript></noscript>--></noscript>
 #errors
-Line: 1 Col: 64 Unexpected end tag (noscript).
+(1,64): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -1030,7 +1067,7 @@ Line: 1 Col: 64 Unexpected end tag (noscript).
 #data
 <!doctype html><noframes><!--<noframes></noframes>--></noframes>
 #errors
-Line: 1 Col: 64 Unexpected end tag (noframes).
+(1,64): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -1054,7 +1091,7 @@ Line: 1 Col: 64 Unexpected end tag (noframes).
 #data
 <!doctype html><textarea><!--<textarea></textarea>--></textarea>
 #errors
-Line: 1 Col: 64 Unexpected end tag (textarea).
+(1,64): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -1100,7 +1137,7 @@ Line: 1 Col: 64 Unexpected end tag (textarea).
 #data
 <!doctype html><iframe><!--<iframe></iframe>--></iframe>
 #errors
-Line: 1 Col: 56 Unexpected end tag (iframe).
+(1,56): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -1124,7 +1161,7 @@ Line: 1 Col: 56 Unexpected end tag (iframe).
 #data
 <!doctype html><xmp><!--<xmp></xmp>--></xmp>
 #errors
-Line: 1 Col: 44 Unexpected end tag (xmp).
+(1,44): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -1137,7 +1174,7 @@ Line: 1 Col: 44 Unexpected end tag (xmp).
 #data
 <!doctype html><noembed><!--<noembed></noembed>--></noembed>
 #errors
-Line: 1 Col: 60 Unexpected end tag (noembed).
+(1,60): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -1150,8 +1187,8 @@ Line: 1 Col: 60 Unexpected end tag (noembed).
 #data
 <script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 8 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,8): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1161,8 +1198,8 @@ Line: 1 Col: 8 Unexpected end of file. Expected end tag (script).
 #data
 <script>a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 9 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,9): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1173,8 +1210,8 @@ Line: 1 Col: 9 Unexpected end of file. Expected end tag (script).
 #data
 <script><
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 9 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,9): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1185,8 +1222,8 @@ Line: 1 Col: 9 Unexpected end of file. Expected end tag (script).
 #data
 <script></
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 10 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,10): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1197,8 +1234,8 @@ Line: 1 Col: 10 Unexpected end of file. Expected end tag (script).
 #data
 <script></S
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,11): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1209,8 +1246,8 @@ Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
 #data
 <script></SC
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 12 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,12): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1221,8 +1258,8 @@ Line: 1 Col: 12 Unexpected end of file. Expected end tag (script).
 #data
 <script></SCR
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 13 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,13): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1233,8 +1270,8 @@ Line: 1 Col: 13 Unexpected end of file. Expected end tag (script).
 #data
 <script></SCRI
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,14): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1245,8 +1282,8 @@ Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
 #data
 <script></SCRIP
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 15 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,15): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1257,8 +1294,8 @@ Line: 1 Col: 15 Unexpected end of file. Expected end tag (script).
 #data
 <script></SCRIPT
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 16 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,16): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1269,8 +1306,9 @@ Line: 1 Col: 16 Unexpected end of file. Expected end tag (script).
 #data
 <script></SCRIPT 
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 17 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,17): expected-attribute-name-but-got-eof
+(1,17): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1280,8 +1318,8 @@ Line: 1 Col: 17 Unexpected end of file. Expected end tag (script).
 #data
 <script></s
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,11): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1292,8 +1330,8 @@ Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
 #data
 <script></sc
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 12 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,12): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1304,8 +1342,8 @@ Line: 1 Col: 12 Unexpected end of file. Expected end tag (script).
 #data
 <script></scr
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 13 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,13): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1316,8 +1354,8 @@ Line: 1 Col: 13 Unexpected end of file. Expected end tag (script).
 #data
 <script></scri
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,14): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1328,8 +1366,8 @@ Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
 #data
 <script></scrip
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 15 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,15): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1340,8 +1378,8 @@ Line: 1 Col: 15 Unexpected end of file. Expected end tag (script).
 #data
 <script></script
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 16 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,16): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1352,8 +1390,9 @@ Line: 1 Col: 16 Unexpected end of file. Expected end tag (script).
 #data
 <script></script 
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 17 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,17): expected-attribute-name-but-got-eof
+(1,17): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1363,8 +1402,8 @@ Line: 1 Col: 17 Unexpected end of file. Expected end tag (script).
 #data
 <script><!
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 10 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,10): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1375,8 +1414,8 @@ Line: 1 Col: 10 Unexpected end of file. Expected end tag (script).
 #data
 <script><!a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,11): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1387,8 +1426,8 @@ Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
 #data
 <script><!-
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,11): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1399,8 +1438,8 @@ Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
 #data
 <script><!-a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 12 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,12): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1411,8 +1450,9 @@ Line: 1 Col: 12 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 12 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,12): expected-named-closing-tag-but-got-eof
+(1,12): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1423,8 +1463,9 @@ Line: 1 Col: 12 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 13 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,13): expected-named-closing-tag-but-got-eof
+(1,13): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1435,8 +1476,9 @@ Line: 1 Col: 13 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 13 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,13): expected-named-closing-tag-but-got-eof
+(1,13): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1447,8 +1489,9 @@ Line: 1 Col: 13 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,14): expected-named-closing-tag-but-got-eof
+(1,14): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1459,8 +1502,9 @@ Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--</
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,14): expected-named-closing-tag-but-got-eof
+(1,14): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1471,8 +1515,9 @@ Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--</script
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 20 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,20): expected-named-closing-tag-but-got-eof
+(1,20): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1483,8 +1528,9 @@ Line: 1 Col: 20 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--</script 
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 21 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,21): expected-attribute-name-but-got-eof
+(1,21): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1495,8 +1541,9 @@ Line: 1 Col: 21 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<s
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,14): expected-named-closing-tag-but-got-eof
+(1,14): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1507,8 +1554,9 @@ Line: 1 Col: 14 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 19 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,19): expected-named-closing-tag-but-got-eof
+(1,19): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1519,8 +1567,9 @@ Line: 1 Col: 19 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script 
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 20 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,20): eof-in-script-in-script
+(1,20): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1531,8 +1580,9 @@ Line: 1 Col: 20 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script <
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 21 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,21): eof-in-script-in-script
+(1,21): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1543,8 +1593,9 @@ Line: 1 Col: 21 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script <a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 22 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,22): eof-in-script-in-script
+(1,22): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1555,8 +1606,9 @@ Line: 1 Col: 22 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 22 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,22): eof-in-script-in-script
+(1,22): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1567,8 +1619,9 @@ Line: 1 Col: 22 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </s
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 23 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,23): eof-in-script-in-script
+(1,23): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1579,8 +1632,9 @@ Line: 1 Col: 23 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,28): eof-in-script-in-script
+(1,28): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1591,8 +1645,9 @@ Line: 1 Col: 28 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </scripta
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,29): eof-in-script-in-script
+(1,29): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1603,8 +1658,9 @@ Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script 
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,29): expected-named-closing-tag-but-got-eof
+(1,29): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1615,8 +1671,9 @@ Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,29): expected-named-closing-tag-but-got-eof
+(1,29): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1627,8 +1684,9 @@ Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script/
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,29): expected-named-closing-tag-but-got-eof
+(1,29): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1639,8 +1697,9 @@ Line: 1 Col: 29 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script <
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 30 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,30): expected-named-closing-tag-but-got-eof
+(1,30): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1651,8 +1710,9 @@ Line: 1 Col: 30 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script <a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,31): expected-named-closing-tag-but-got-eof
+(1,31): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1663,8 +1723,9 @@ Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script </
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,31): expected-named-closing-tag-but-got-eof
+(1,31): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1675,8 +1736,9 @@ Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script </script
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,37): expected-named-closing-tag-but-got-eof
+(1,37): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1687,8 +1749,9 @@ Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script </script 
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,38): expected-attribute-name-but-got-eof
+(1,38): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1699,8 +1762,9 @@ Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script </script/
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,38): unexpected-EOF-after-solidus-in-tag
+(1,38): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1711,7 +1775,7 @@ Line: 1 Col: 38 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script </script </script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1722,8 +1786,9 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script -
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 21 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,21): eof-in-script-in-script
+(1,21): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1734,8 +1799,9 @@ Line: 1 Col: 21 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script -a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 22 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,22): eof-in-script-in-script
+(1,22): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1746,8 +1812,9 @@ Line: 1 Col: 22 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script --
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 22 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,22): eof-in-script-in-script
+(1,22): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1758,8 +1825,9 @@ Line: 1 Col: 22 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script --a
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 23 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,23): eof-in-script-in-script
+(1,23): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1770,8 +1838,8 @@ Line: 1 Col: 23 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script -->
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 23 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,23): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1782,8 +1850,8 @@ Line: 1 Col: 23 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script --><
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 24 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,24): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1794,8 +1862,8 @@ Line: 1 Col: 24 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script --></
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 25 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,25): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1806,8 +1874,8 @@ Line: 1 Col: 25 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script --></script
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,31): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1818,8 +1886,9 @@ Line: 1 Col: 31 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script --></script 
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 32 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,32): expected-attribute-name-but-got-eof
+(1,32): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1830,8 +1899,9 @@ Line: 1 Col: 32 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script --></script/
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 32 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,32): unexpected-EOF-after-solidus-in-tag
+(1,32): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -1842,7 +1912,7 @@ Line: 1 Col: 32 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<script --></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1853,7 +1923,7 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script><\/script>--></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1864,7 +1934,7 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script></scr'+'ipt>--></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1875,7 +1945,7 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script></script><script></script></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1886,7 +1956,7 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script></script><script></script>--><!--</script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1897,7 +1967,7 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script></script><script></script>-- ></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1908,7 +1978,7 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script></script><script></script>- -></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1919,7 +1989,7 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script></script><script></script>- - ></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1930,7 +2000,7 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script></script><script></script>-></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -1941,8 +2011,9 @@ Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
 #data
 <script><!--<script>--!></script>X
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 34 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,34): expected-named-closing-tag-but-got-eof
+(1,34): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1953,8 +2024,8 @@ Line: 1 Col: 34 Unexpected end of file. Expected end tag (script).
 #data
 <script><!--<scr'+'ipt></script>--></script>
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 44 Unexpected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,44): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1966,8 +2037,9 @@ Line: 1 Col: 44 Unexpected end tag (script).
 #data
 <script><!--<script></scr'+'ipt></script>X
 #errors
-Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
-Line: 1 Col: 42 Unexpected end of file. Expected end tag (script).
+(1,8): expected-doctype-but-got-start-tag
+(1,42): expected-named-closing-tag-but-got-eof
+(1,42): unexpected-eof-in-text-mode
 #document
 | <html>
 |   <head>
@@ -1978,8 +2050,8 @@ Line: 1 Col: 42 Unexpected end of file. Expected end tag (script).
 #data
 <style><!--<style></style>--></style>
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
-Line: 1 Col: 37 Unexpected end tag (style).
+(1,7): expected-doctype-but-got-start-tag
+(1,37): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -1991,7 +2063,7 @@ Line: 1 Col: 37 Unexpected end tag (style).
 #data
 <style><!--</style>X
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2003,8 +2075,8 @@ Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
 #data
 <style><!--...</style>...--></style>
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
-Line: 1 Col: 36 Unexpected end tag (style).
+(1,7): expected-doctype-but-got-start-tag
+(1,36): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2016,7 +2088,7 @@ Line: 1 Col: 36 Unexpected end tag (style).
 #data
 <style><!--<br><html xmlns:v="urn:schemas-microsoft-com:vml"><!--[if !mso]><style></style>X
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2028,8 +2100,8 @@ Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
 #data
 <style><!--...<style><!--...--!></style>--></style>
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
-Line: 1 Col: 51 Unexpected end tag (style).
+(1,7): expected-doctype-but-got-start-tag
+(1,51): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2041,7 +2113,7 @@ Line: 1 Col: 51 Unexpected end tag (style).
 #data
 <style><!--...</style><!-- --><style>@import ...</style>
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2055,8 +2127,8 @@ Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
 #data
 <style>...<style><!--...</style><!-- --></style>
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
-Line: 1 Col: 48 Unexpected end tag (style).
+(1,7): expected-doctype-but-got-start-tag
+(1,48): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2068,7 +2140,7 @@ Line: 1 Col: 48 Unexpected end tag (style).
 #data
 <style>...<!--[if IE]><style>...</style>X
 #errors
-Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2080,8 +2152,8 @@ Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
 #data
 <title><!--<title></title>--></title>
 #errors
-Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
-Line: 1 Col: 37 Unexpected end tag (title).
+(1,7): expected-doctype-but-got-start-tag
+(1,37): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2093,7 +2165,7 @@ Line: 1 Col: 37 Unexpected end tag (title).
 #data
 <title>&lt;/title></title>
 #errors
-Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
+(1,7): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2104,8 +2176,8 @@ Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
 #data
 <title>foo/title><link></head><body>X
 #errors
-Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
-Line: 1 Col: 37 Unexpected end of file. Expected end tag (title).
+(1,7): expected-doctype-but-got-start-tag
+(1,37): expected-named-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -2116,8 +2188,8 @@ Line: 1 Col: 37 Unexpected end of file. Expected end tag (title).
 #data
 <noscript><!--<noscript></noscript>--></noscript>
 #errors
-Line: 1 Col: 10 Unexpected start tag (noscript). Expected DOCTYPE.
-Line: 1 Col: 49 Unexpected end tag (noscript).
+(1,10): expected-doctype-but-got-start-tag
+(1,49): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2129,7 +2201,7 @@ Line: 1 Col: 49 Unexpected end tag (noscript).
 #data
 <noscript><!--</noscript>X<noscript>--></noscript>
 #errors
-Line: 1 Col: 10 Unexpected start tag (noscript). Expected DOCTYPE.
+(1,10): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2143,7 +2215,7 @@ Line: 1 Col: 10 Unexpected start tag (noscript). Expected DOCTYPE.
 #data
 <noscript><iframe></noscript>X
 #errors
-Line: 1 Col: 10 Unexpected start tag (noscript). Expected DOCTYPE.
+(1,10): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2155,8 +2227,8 @@ Line: 1 Col: 10 Unexpected start tag (noscript). Expected DOCTYPE.
 #data
 <noframes><!--<noframes></noframes>--></noframes>
 #errors
-Line: 1 Col: 10 Unexpected start tag (noframes). Expected DOCTYPE.
-Line: 1 Col: 49 Unexpected end tag (noframes).
+(1,10): expected-doctype-but-got-start-tag
+(1,49): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2168,7 +2240,7 @@ Line: 1 Col: 49 Unexpected end tag (noframes).
 #data
 <noframes><body><script><!--...</script></body></noframes></html>
 #errors
-Line: 1 Col: 10 Unexpected start tag (noframes). Expected DOCTYPE.
+(1,10): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2179,8 +2251,8 @@ Line: 1 Col: 10 Unexpected start tag (noframes). Expected DOCTYPE.
 #data
 <textarea><!--<textarea></textarea>--></textarea>
 #errors
-Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
-Line: 1 Col: 49 Unexpected end tag (textarea).
+(1,10): expected-doctype-but-got-start-tag
+(1,49): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2192,7 +2264,7 @@ Line: 1 Col: 49 Unexpected end tag (textarea).
 #data
 <textarea>&lt;/textarea></textarea>
 #errors
-Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
+(1,10): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2203,8 +2275,8 @@ Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
 #data
 <iframe><!--<iframe></iframe>--></iframe>
 #errors
-Line: 1 Col: 8 Unexpected start tag (iframe). Expected DOCTYPE.
-Line: 1 Col: 41 Unexpected end tag (iframe).
+(1,8): expected-doctype-but-got-start-tag
+(1,41): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2216,7 +2288,7 @@ Line: 1 Col: 41 Unexpected end tag (iframe).
 #data
 <iframe>...<!--X->...<!--/X->...</iframe>
 #errors
-Line: 1 Col: 8 Unexpected start tag (iframe). Expected DOCTYPE.
+(1,8): expected-doctype-but-got-start-tag
 #document
 | <html>
 |   <head>
@@ -2227,8 +2299,8 @@ Line: 1 Col: 8 Unexpected start tag (iframe). Expected DOCTYPE.
 #data
 <xmp><!--<xmp></xmp>--></xmp>
 #errors
-Line: 1 Col: 5 Unexpected start tag (xmp). Expected DOCTYPE.
-Line: 1 Col: 29 Unexpected end tag (xmp).
+(1,5): expected-doctype-but-got-start-tag
+(1,29): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2240,8 +2312,8 @@ Line: 1 Col: 29 Unexpected end tag (xmp).
 #data
 <noembed><!--<noembed></noembed>--></noembed>
 #errors
-Line: 1 Col: 9 Unexpected start tag (noembed). Expected DOCTYPE.
-Line: 1 Col: 45 Unexpected end tag (noembed).
+(1,9): expected-doctype-but-got-start-tag
+(1,45): unexpected-end-tag
 #document
 | <html>
 |   <head>
@@ -2254,7 +2326,7 @@ Line: 1 Col: 45 Unexpected end tag (noembed).
 <!doctype html><table>
 
 #errors
-Line 2 Col 0 Unexpected end of file. Expected table content.
+(2,0): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
@@ -2267,9 +2339,9 @@ Line 2 Col 0 Unexpected end of file. Expected table content.
 #data
 <!doctype html><table><td><span><font></span><span>
 #errors
-Line 1 Col 26 Unexpected table cell start tag (td) in the table body phase.
-Line 1 Col 45 Unexpected end tag (span).
-Line 1 Col 51 Expected closing tag. Unexpected end of file.
+(1,26): unexpected-cell-in-table-body
+(1,45): unexpected-end-tag
+(1,51): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -2287,8 +2359,11 @@ Line 1 Col 51 Expected closing tag. Unexpected end of file.
 #data
 <!doctype html><form><table></form><form></table></form>
 #errors
-35: Stray end tag “form”.
-41: Start tag “form” seen in “table”.
+(1,35): unexpected-end-tag-implies-table-voodoo
+(1,35): unexpected-end-tag
+(1,41): unexpected-form-in-table
+(1,56): unexpected-end-tag
+(1,56): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
index 7b555f8..37a7be4 100644 (file)
@@ -1,6 +1,9 @@
 #data
 <!doctype html><table><tbody><select><tr>
 #errors
+(1,37): unexpected-start-tag-implies-table-voodoo
+(1,41): unexpected-table-element-start-tag-in-select-in-table
+(1,41): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
@@ -14,6 +17,9 @@
 #data
 <!doctype html><table><tr><select><td>
 #errors
+(1,34): unexpected-start-tag-implies-table-voodoo
+(1,38): unexpected-table-element-start-tag-in-select-in-table
+(1,38): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -28,6 +34,8 @@
 #data
 <!doctype html><table><tr><td><select><td>
 #errors
+(1,42): unexpected-table-element-start-tag-in-select-in-table
+(1,42): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -43,6 +51,8 @@
 #data
 <!doctype html><table><tr><th><select><td>
 #errors
+(1,42): unexpected-table-element-start-tag-in-select-in-table
+(1,42): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -58,6 +68,9 @@
 #data
 <!doctype html><table><caption><select><tr>
 #errors
+(1,43): unexpected-table-element-start-tag-in-select-in-table
+(1,43): XXX-undefined-error
+(1,43): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
@@ -72,6 +85,8 @@
 #data
 <!doctype html><select><tr>
 #errors
+(1,27): unexpected-start-tag-in-select
+(1,27): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
@@ -82,6 +97,8 @@
 #data
 <!doctype html><select><td>
 #errors
+(1,27): unexpected-start-tag-in-select
+(1,27): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><th>
 #errors
+(1,27): unexpected-start-tag-in-select
+(1,27): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><tbody>
 #errors
+(1,30): unexpected-start-tag-in-select
+(1,30): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><thead>
 #errors
+(1,30): unexpected-start-tag-in-select
+(1,30): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><tfoot>
 #errors
+(1,30): unexpected-start-tag-in-select
+(1,30): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><caption>
 #errors
+(1,32): unexpected-start-tag-in-select
+(1,32): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
index 680e1f0..926bccb 100644 (file)
@@ -1,6 +1,7 @@
 #data
 <!doctype html><plaintext></plaintext>
 #errors
+(1,38): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><plaintext></plaintext>
 #errors
+(1,33): foster-parenting-start-tag
+(1,34): foster-parenting-character
+(1,35): foster-parenting-character
+(1,36): foster-parenting-character
+(1,37): foster-parenting-character
+(1,38): foster-parenting-character
+(1,39): foster-parenting-character
+(1,40): foster-parenting-character
+(1,41): foster-parenting-character
+(1,42): foster-parenting-character
+(1,43): foster-parenting-character
+(1,44): foster-parenting-character
+(1,45): foster-parenting-character
+(1,45): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><tbody><plaintext></plaintext>
 #errors
+(1,40): foster-parenting-start-tag
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,41): foster-parenting-character
+(1,52): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><tbody><tr><plaintext></plaintext>
 #errors
-#document
-| <!DOCTYPE html>
-| <html>
-|   <head>
-|   <body>
-|     <plaintext>
-|       "</plaintext>"
-|     <table>
-|       <tbody>
-|         <tr>
-
-#data
-<!doctype html><table><tbody><tr><plaintext></plaintext>
-#errors
+(1,44): foster-parenting-start-tag
+(1,45): foster-parenting-character
+(1,46): foster-parenting-character
+(1,47): foster-parenting-character
+(1,48): foster-parenting-character
+(1,49): foster-parenting-character
+(1,50): foster-parenting-character
+(1,51): foster-parenting-character
+(1,52): foster-parenting-character
+(1,53): foster-parenting-character
+(1,54): foster-parenting-character
+(1,55): foster-parenting-character
+(1,56): foster-parenting-character
+(1,56): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
@@ -65,6 +94,8 @@
 #data
 <!doctype html><table><td><plaintext></plaintext>
 #errors
+(1,26): unexpected-cell-in-table-body
+(1,49): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><caption><plaintext></plaintext>
 #errors
+(1,54): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><tr><style></script></style>abc
 #errors
+(1,51): foster-parenting-character
+(1,52): foster-parenting-character
+(1,53): foster-parenting-character
+(1,53): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><tr><script></style></script>abc
 #errors
+(1,52): foster-parenting-character
+(1,53): foster-parenting-character
+(1,54): foster-parenting-character
+(1,54): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><caption><style></script></style>abc
 #errors
+(1,58): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><td><style></script></style>abc
 #errors
+(1,26): unexpected-cell-in-table-body
+(1,53): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><script></style></script>abc
 #errors
+(1,51): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><select><script></style></script>abc
 #errors
+(1,30): unexpected-start-tag-implies-table-voodoo
+(1,58): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><tr><select><script></style></script>abc
 #errors
+(1,34): unexpected-start-tag-implies-table-voodoo
+(1,62): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><frameset></frameset><noframes>abc
 #errors
+(1,49): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><frameset></frameset></html><noframes>abc
 #errors
+(1,56): expected-named-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><tr></tbody><tfoot>
 #errors
+(1,41): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><td><svg></svg>abc<td>
 #errors
+(1,26): unexpected-cell-in-table-body
+(1,44): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
index 0d62f5a..9e7e03f 100644 (file)
@@ -1,6 +1,7 @@
 #data
 <!doctype html><math><mn DefinitionUrl="foo">
 #errors
+(1,45): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -13,6 +14,7 @@
 #data
 <!doctype html><html></p><!--foo-->
 #errors
+(1,25): end-tag-after-implied-root
 #document
 | <!DOCTYPE html>
 | <html>
@@ -23,6 +25,7 @@
 #data
 <!doctype html><head></head></p><!--foo-->
 #errors
+(1,32): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
@@ -33,6 +36,7 @@
 #data
 <!doctype html><body><p><pre>
 #errors
+(1,29): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -44,6 +48,7 @@
 #data
 <!doctype html><body><p><listing>
 #errors
+(1,33): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -55,6 +60,7 @@
 #data
 <!doctype html><p><plaintext>
 #errors
+(1,29): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -66,6 +72,7 @@
 #data
 <!doctype html><p><h1>
 #errors
+(1,22): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -77,6 +84,8 @@
 #data
 <!doctype html><form><isindex>
 #errors
+(1,30): deprecated-tag
+(1,30): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
@@ -87,6 +96,7 @@
 #data
 <!doctype html><isindex action="POST">
 #errors
+(1,38): deprecated-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><isindex prompt="this is isindex">
 #errors
+(1,49): deprecated-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><isindex type="hidden">
 #errors
+(1,38): deprecated-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><isindex name="foo">
 #errors
+(1,35): deprecated-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><ruby><p><rp>
 #errors
+(1,28): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><ruby><div><span><rp>
 #errors
+(1,36): XXX-undefined-error
+(1,36): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><ruby><div><p><rp>
 #errors
+(1,33): XXX-undefined-error
+(1,33): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><ruby><p><rt>
 #errors
+(1,28): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><ruby><div><span><rt>
 #errors
+(1,36): XXX-undefined-error
+(1,36): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><ruby><div><p><rt>
 #errors
+(1,33): XXX-undefined-error
+(1,33): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><math/><foo>
 #errors
+(1,27): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><svg/><foo>
 #errors
+(1,26): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><div></body><!--foo-->
 #errors
+(1,27): expected-one-end-tag-but-got-another
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><h1><div><h3><span></h1>foo
 #errors
+(1,39): end-tag-too-early
+(1,42): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p></h3>foo
 #errors
+(1,23): end-tag-too-early
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><h3><li>abc</h2>foo
 #errors
+(1,31): end-tag-too-early
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table>abc<!--foo-->
 #errors
+(1,23): foster-parenting-character
+(1,24): foster-parenting-character
+(1,25): foster-parenting-character
+(1,35): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table>  <!--foo-->
 #errors
+(1,34): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table> b <!--foo-->
 #errors
+(1,23): foster-parenting-character
+(1,24): foster-parenting-character
+(1,25): foster-parenting-character
+(1,35): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><option><option>
 #errors
+(1,39): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><option></optgroup>
 #errors
+(1,42): unexpected-end-tag-in-select
+(1,42): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select><option></optgroup>
 #errors
+(1,42): unexpected-end-tag-in-select
+(1,42): eof-in-select
 #document
 | <!DOCTYPE html>
 | <html>
 |       <option>
 
 #data
+<!doctype html><dd><optgroup><dd>
+#errors
+#document
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+|     <dd>
+|       <optgroup>
+|     <dd>
+
+#data
 <!doctype html><p><math><mi><p><h1>
 #errors
+(1,35): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p><math><mo><p><h1>
 #errors
+(1,35): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p><math><mn><p><h1>
 #errors
+(1,35): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p><math><ms><p><h1>
 #errors
+(1,35): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p><math><mtext><p><h1>
 #errors
+(1,38): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><frameset></noframes>
 #errors
+(1,36): unexpected-end-tag-in-frameset
+(1,36): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><html c=d><body></html><html a=b>
 #errors
+(1,48): non-html-root
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><html c=d><frameset></frameset></html><html a=b>
 #errors
+(1,63): non-html-root
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><html><frameset></frameset></html>abc
 #errors
+(1,50): expected-eof-but-got-char
+(1,51): expected-eof-but-got-char
+(1,52): expected-eof-but-got-char
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><html><frameset></frameset></html><p>
 #errors
+(1,52): expected-eof-but-got-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><html><frameset></frameset></html></p>
 #errors
+(1,53): expected-eof-but-got-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <html><frameset></frameset></html><!doctype html>
 #errors
+(1,6): expected-doctype-but-got-start-tag
+(1,49): unexpected-doctype
 #document
 | <html>
 |   <head>
 #data
 <!doctype html><body><frameset>
 #errors
+(1,31): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p><frameset><frame>
 #errors
+(1,28): unexpected-start-tag
+(1,35): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p>a<frameset>
 #errors
+(1,29): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p> <frameset><frame>
 #errors
+(1,29): unexpected-start-tag
+(1,36): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><pre><frameset>
 #errors
+(1,30): unexpected-start-tag
+(1,30): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><listing><frameset>
 #errors
+(1,34): unexpected-start-tag
+(1,34): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><li><frameset>
 #errors
+(1,29): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><dd><frameset>
 #errors
+(1,29): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><dt><frameset>
 #errors
+(1,29): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><button><frameset>
 #errors
+(1,33): unexpected-start-tag
+(1,33): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><applet><frameset>
 #errors
+(1,33): unexpected-start-tag
+(1,33): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><marquee><frameset>
 #errors
+(1,34): unexpected-start-tag
+(1,34): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><object><frameset>
 #errors
+(1,33): unexpected-start-tag
+(1,33): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><frameset>
 #errors
+(1,32): unexpected-start-tag-implies-table-voodoo
+(1,32): unexpected-start-tag
+(1,32): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><area><frameset>
 #errors
+(1,31): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><basefont><frameset>
 #errors
+(1,35): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><bgsound><frameset>
 #errors
+(1,34): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><br><frameset>
 #errors
+(1,29): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><embed><frameset>
 #errors
+(1,32): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><img><frameset>
 #errors
+(1,30): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><input><frameset>
 #errors
+(1,32): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><keygen><frameset>
 #errors
+(1,33): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><wbr><frameset>
 #errors
+(1,30): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><hr><frameset>
 #errors
+(1,29): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><textarea></textarea><frameset>
 #errors
+(1,46): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><xmp></xmp><frameset>
 #errors
+(1,36): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><iframe></iframe><frameset>
 #errors
+(1,42): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><select></select><frameset>
 #errors
+(1,42): unexpected-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><svg></svg><frameset><frame>
 #errors
+(1,36): unexpected-start-tag
+(1,43): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><math></math><frameset><frame>
 #errors
+(1,38): unexpected-start-tag
+(1,45): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><svg><foreignObject><div> <frameset><frame>
 #errors
+(1,51): unexpected-start-tag
+(1,58): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><svg>a</svg><frameset><frame>
 #errors
+(1,37): unexpected-start-tag
+(1,44): unexpected-start-tag-ignored
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><svg> </svg><frameset><frame>
 #errors
+(1,37): unexpected-start-tag
+(1,44): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <html>aaa<frameset></frameset>
 #errors
+(1,6): expected-doctype-but-got-start-tag
+(1,19): unexpected-start-tag
+(1,30): unexpected-end-tag
 #document
 | <html>
 |   <head>
 #data
 <html> a <frameset></frameset>
 #errors
+(1,6): expected-doctype-but-got-start-tag
+(1,19): unexpected-start-tag
+(1,30): unexpected-end-tag
 #document
 | <html>
 |   <head>
 #data
 <!doctype html><div><frameset>
 #errors
+(1,30): unexpected-start-tag
+(1,30): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><div><body><frameset>
 #errors
+(1,26): unexpected-start-tag
+(1,36): unexpected-start-tag
+(1,36): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p><math></p>a
 #errors
+(1,28): unexpected-end-tag
+(1,28): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p><math><mn><span></p>a
 #errors
+(1,38): unexpected-end-tag
+(1,39): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><math></html>
 #errors
+(1,28): unexpected-end-tag
+(1,28): expected-one-end-tag-but-got-another
+(1,28): unexpected-end-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><html a=b><head></head><html c=d>
 #errors
+(1,48): non-html-root
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><image/>
 #errors
+(1,23): image-start-tag
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html>a<i>b<table>c<b>d</i>e</b>f
 #errors
+(1,28): foster-parenting-character
+(1,31): foster-parenting-start-tag
+(1,32): foster-parenting-character
+(1,36): foster-parenting-end-tag
+(1,36): adoption-agency-1.3
+(1,37): foster-parenting-character
+(1,41): foster-parenting-end-tag
+(1,42): foster-parenting-character
+(1,42): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f
 #errors
+(1,25): foster-parenting-start-tag
+(1,26): foster-parenting-character
+(1,29): foster-parenting-start-tag
+(1,30): foster-parenting-character
+(1,35): foster-parenting-start-tag
+(1,36): foster-parenting-character
+(1,39): foster-parenting-start-tag
+(1,40): foster-parenting-character
+(1,44): foster-parenting-end-tag
+(1,44): adoption-agency-1.3
+(1,44): adoption-agency-1.3
+(1,45): foster-parenting-character
+(1,49): foster-parenting-end-tag
+(1,49): adoption-agency-1.3
+(1,49): adoption-agency-1.3
+(1,50): foster-parenting-character
+(1,50): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><i>a<b>b<div>c<a>d</i>e</b>f
 #errors
+(1,37): adoption-agency-1.3
+(1,37): adoption-agency-1.3
+(1,42): adoption-agency-1.3
+(1,42): adoption-agency-1.3
+(1,43): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><i>a<b>b<div>c</i>
 #errors
+(1,25): foster-parenting-start-tag
+(1,26): foster-parenting-character
+(1,29): foster-parenting-start-tag
+(1,30): foster-parenting-character
+(1,35): foster-parenting-start-tag
+(1,36): foster-parenting-character
+(1,40): foster-parenting-end-tag
+(1,40): adoption-agency-1.3
+(1,40): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><i>a<b>b<div>c<a>d</i>e</b>f
 #errors
+(1,25): foster-parenting-start-tag
+(1,26): foster-parenting-character
+(1,29): foster-parenting-start-tag
+(1,30): foster-parenting-character
+(1,35): foster-parenting-start-tag
+(1,36): foster-parenting-character
+(1,39): foster-parenting-start-tag
+(1,40): foster-parenting-character
+(1,44): foster-parenting-end-tag
+(1,44): adoption-agency-1.3
+(1,44): adoption-agency-1.3
+(1,45): foster-parenting-character
+(1,49): foster-parenting-end-tag
+(1,44): adoption-agency-1.3
+(1,44): adoption-agency-1.3
+(1,50): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><i>a<div>b<tr>c<b>d</i>e
 #errors
+(1,25): foster-parenting-start-tag
+(1,26): foster-parenting-character
+(1,31): foster-parenting-start-tag
+(1,32): foster-parenting-character
+(1,37): foster-parenting-character
+(1,40): foster-parenting-start-tag
+(1,41): foster-parenting-character
+(1,45): foster-parenting-end-tag
+(1,45): adoption-agency-1.3
+(1,46): foster-parenting-character
+(1,46): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><table><td><table><i>a<div>b<b>c</i>d
 #errors
+(1,26): unexpected-cell-in-table-body
+(1,36): foster-parenting-start-tag
+(1,37): foster-parenting-character
+(1,42): foster-parenting-start-tag
+(1,43): foster-parenting-character
+(1,46): foster-parenting-start-tag
+(1,47): foster-parenting-character
+(1,51): foster-parenting-end-tag
+(1,51): adoption-agency-1.3
+(1,51): adoption-agency-1.3
+(1,52): foster-parenting-character
+(1,52): eof-in-table
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><a><b></a><basefont>
 #errors
+(1,25): adoption-agency-1.3
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><a><b></a><bgsound>
 #errors
+(1,25): adoption-agency-1.3
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><figcaption><article></figcaption>a
 #errors
+(1,49): end-tag-too-early
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><summary><article></summary>a
 #errors
+(1,43): end-tag-too-early
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!doctype html><p><a><plaintext>b
 #errors
+(1,32): unexpected-end-tag
+(1,33): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
 #data
 <!DOCTYPE html><div>a<a></div>b<p>c</p>d
 #errors
+(1,30): end-tag-too-early
+(1,40): expected-closing-tag-but-got-eof
 #document
 | <!DOCTYPE html>
 | <html>
index 60d8592..0ad7708 100644 (file)
@@ -11,8 +11,8 @@
 #data
 <textarea>test</div>test
 #errors
-Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
-Line: 1 Col: 24 Expected closing tag. Unexpected end of file.
+(1,10): expected-doctype-but-got-start-tag
+(1,24): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -23,9 +23,9 @@ Line: 1 Col: 24 Expected closing tag. Unexpected end of file.
 #data
 <table><td>
 #errors
-Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
-Line: 1 Col: 11 Expected closing tag. Unexpected end of file.
+(1,7): expected-doctype-but-got-start-tag
+(1,11): unexpected-cell-in-table-body
+(1,11): expected-closing-tag-but-got-eof
 #document
 | <html>
 |   <head>
@@ -38,8 +38,8 @@ Line: 1 Col: 11 Expected closing tag. Unexpected end of file.
 #data
 <table><td>test</tbody></table>
 #errors
-Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
-Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
+(1,7): expected-doctype-but-got-start-tag
+(1,11): unexpected-cell-in-table-body
 #document
 | <html>
 |   <head>
@@ -53,8 +53,8 @@ Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
 #data
 <frame>test
 #errors
-Line: 1 Col: 7 Unexpected start tag (frame). Expected DOCTYPE.
-Line: 1 Col: 7 Unexpected start tag frame. Ignored.
+(1,7): expected-doctype-but-got-start-tag
+(1,7): unexpected-start-tag-ignored
 #document
 | <html>
 |   <head>
@@ -64,8 +64,11 @@ Line: 1 Col: 7 Unexpected start tag frame. Ignored.
 #data
 <!DOCTYPE html><frameset>test
 #errors
-Line: 1 Col: 29 Unepxected characters in the frameset phase. Characters ignored.
-Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
+(1,29): unexpected-char-in-frameset
+(1,29): unexpected-char-in-frameset
+(1,29): unexpected-char-in-frameset
+(1,29): unexpected-char-in-frameset
+(1,29): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
@@ -75,8 +78,8 @@ Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
 #data
 <!DOCTYPE html><frameset><!DOCTYPE html>
 #errors
-Line: 1 Col: 40 Unexpected DOCTYPE. Ignored.
-Line: 1 Col: 40 Expected closing tag. Unexpected end of file.
+(1,40): unexpected-doctype
+(1,40): eof-in-frameset
 #document
 | <!DOCTYPE html>
 | <html>
@@ -86,8 +89,8 @@ Line: 1 Col: 40 Expected closing tag. Unexpected end of file.
 #data
 <!DOCTYPE html><font><p><b>test</font>
 #errors
-Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
-Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
+(1,38): adoption-agency-1.3
+(1,38): adoption-agency-1.3
 #document
 | <!DOCTYPE html>
 | <html>
@@ -102,7 +105,7 @@ Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agen
 #data
 <!DOCTYPE html><dt><div><dd>
 #errors
-Line: 1 Col: 28 Missing end tag (div, dt).
+(1,28): end-tag-too-early
 #document
 | <!DOCTYPE html>
 | <html>
@@