parser/htmlparser/tests/mochitest/html5lib_tree_construction/comments01.dat

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/comments01.dat	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,178 @@
     1.4 +#data
     1.5 +FOO<!-- BAR -->BAZ
     1.6 +#errors
     1.7 +(1,3): expected-doctype-but-got-chars
     1.8 +#document
     1.9 +| <html>
    1.10 +|   <head>
    1.11 +|   <body>
    1.12 +|     "FOO"
    1.13 +|     <!--  BAR  -->
    1.14 +|     "BAZ"
    1.15 +
    1.16 +#data
    1.17 +FOO<!-- BAR --!>BAZ
    1.18 +#errors
    1.19 +(1,3): expected-doctype-but-got-chars
    1.20 +(1,15): unexpected-bang-after-double-dash-in-comment
    1.21 +#document
    1.22 +| <html>
    1.23 +|   <head>
    1.24 +|   <body>
    1.25 +|     "FOO"
    1.26 +|     <!--  BAR  -->
    1.27 +|     "BAZ"
    1.28 +
    1.29 +#data
    1.30 +FOO<!-- BAR --   >BAZ
    1.31 +#errors
    1.32 +(1,3): expected-doctype-but-got-chars
    1.33 +(1,15): unexpected-char-in-comment
    1.34 +(1,21): eof-in-comment
    1.35 +#document
    1.36 +| <html>
    1.37 +|   <head>
    1.38 +|   <body>
    1.39 +|     "FOO"
    1.40 +|     <!--  BAR --   >BAZ -->
    1.41 +
    1.42 +#data
    1.43 +FOO<!-- BAR -- <QUX> -- MUX -->BAZ
    1.44 +#errors
    1.45 +(1,3): expected-doctype-but-got-chars
    1.46 +(1,15): unexpected-char-in-comment
    1.47 +(1,24): unexpected-char-in-comment
    1.48 +#document
    1.49 +| <html>
    1.50 +|   <head>
    1.51 +|   <body>
    1.52 +|     "FOO"
    1.53 +|     <!--  BAR -- <QUX> -- MUX  -->
    1.54 +|     "BAZ"
    1.55 +
    1.56 +#data
    1.57 +FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
    1.58 +#errors
    1.59 +(1,3): expected-doctype-but-got-chars
    1.60 +(1,15): unexpected-char-in-comment
    1.61 +(1,24): unexpected-char-in-comment
    1.62 +(1,31): unexpected-bang-after-double-dash-in-comment
    1.63 +#document
    1.64 +| <html>
    1.65 +|   <head>
    1.66 +|   <body>
    1.67 +|     "FOO"
    1.68 +|     <!--  BAR -- <QUX> -- MUX  -->
    1.69 +|     "BAZ"
    1.70 +
    1.71 +#data
    1.72 +FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
    1.73 +#errors
    1.74 +(1,3): expected-doctype-but-got-chars
    1.75 +(1,15): unexpected-char-in-comment
    1.76 +(1,24): unexpected-char-in-comment
    1.77 +(1,31): unexpected-char-in-comment
    1.78 +(1,35): eof-in-comment
    1.79 +#document
    1.80 +| <html>
    1.81 +|   <head>
    1.82 +|   <body>
    1.83 +|     "FOO"
    1.84 +|     <!--  BAR -- <QUX> -- MUX -- >BAZ -->
    1.85 +
    1.86 +#data
    1.87 +FOO<!---->BAZ
    1.88 +#errors
    1.89 +(1,3): expected-doctype-but-got-chars
    1.90 +#document
    1.91 +| <html>
    1.92 +|   <head>
    1.93 +|   <body>
    1.94 +|     "FOO"
    1.95 +|     <!--  -->
    1.96 +|     "BAZ"
    1.97 +
    1.98 +#data
    1.99 +FOO<!--->BAZ
   1.100 +#errors
   1.101 +(1,3): expected-doctype-but-got-chars
   1.102 +(1,9): incorrect-comment
   1.103 +#document
   1.104 +| <html>
   1.105 +|   <head>
   1.106 +|   <body>
   1.107 +|     "FOO"
   1.108 +|     <!--  -->
   1.109 +|     "BAZ"
   1.110 +
   1.111 +#data
   1.112 +FOO<!-->BAZ
   1.113 +#errors
   1.114 +(1,3): expected-doctype-but-got-chars
   1.115 +(1,8): incorrect-comment
   1.116 +#document
   1.117 +| <html>
   1.118 +|   <head>
   1.119 +|   <body>
   1.120 +|     "FOO"
   1.121 +|     <!--  -->
   1.122 +|     "BAZ"
   1.123 +
   1.124 +#data
   1.125 +<?xml version="1.0">Hi
   1.126 +#errors
   1.127 +(1,1): expected-tag-name-but-got-question-mark
   1.128 +(1,22): expected-doctype-but-got-chars
   1.129 +#document
   1.130 +| <!-- ?xml version="1.0" -->
   1.131 +| <html>
   1.132 +|   <head>
   1.133 +|   <body>
   1.134 +|     "Hi"
   1.135 +
   1.136 +#data
   1.137 +<?xml version="1.0">
   1.138 +#errors
   1.139 +(1,1): expected-tag-name-but-got-question-mark
   1.140 +(1,20): expected-doctype-but-got-eof
   1.141 +#document
   1.142 +| <!-- ?xml version="1.0" -->
   1.143 +| <html>
   1.144 +|   <head>
   1.145 +|   <body>
   1.146 +
   1.147 +#data
   1.148 +<?xml version
   1.149 +#errors
   1.150 +(1,1): expected-tag-name-but-got-question-mark
   1.151 +(1,13): expected-doctype-but-got-eof
   1.152 +#document
   1.153 +| <!-- ?xml version -->
   1.154 +| <html>
   1.155 +|   <head>
   1.156 +|   <body>
   1.157 +
   1.158 +#data
   1.159 +FOO<!----->BAZ
   1.160 +#errors
   1.161 +(1,3): expected-doctype-but-got-chars
   1.162 +(1,10): unexpected-dash-after-double-dash-in-comment
   1.163 +#document
   1.164 +| <html>
   1.165 +|   <head>
   1.166 +|   <body>
   1.167 +|     "FOO"
   1.168 +|     <!-- - -->
   1.169 +|     "BAZ"
   1.170 +
   1.171 +#data
   1.172 +<html><!-- comment --><title>Comment before head</title>
   1.173 +#errors
   1.174 +(1,6): expected-doctype-but-got-start-tag
   1.175 +#document
   1.176 +| <html>
   1.177 +|   <!--  comment  -->
   1.178 +|   <head>
   1.179 +|     <title>
   1.180 +|       "Comment before head"
   1.181 +|   <body>

mercurial