parser/htmlparser/tests/mochitest/html5lib_tree_construction/adoption02.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/adoption02.dat	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,99 @@
     1.4 +#data
     1.5 +<b>1<i>2<p>3</b>4
     1.6 +#errors
     1.7 +(1,3): expected-doctype-but-got-start-tag
     1.8 +(1,16): adoption-agency-1.3
     1.9 +(1,17): expected-closing-tag-but-got-eof
    1.10 +#document
    1.11 +| <html>
    1.12 +|   <head>
    1.13 +|   <body>
    1.14 +|     <b>
    1.15 +|       "1"
    1.16 +|       <i>
    1.17 +|         "2"
    1.18 +|     <i>
    1.19 +|       <p>
    1.20 +|         <b>
    1.21 +|           "3"
    1.22 +|         "4"
    1.23 +
    1.24 +#data
    1.25 +<a><div><style></style><address><a>
    1.26 +#errors
    1.27 +(1,3): expected-doctype-but-got-start-tag
    1.28 +(1,35): unexpected-start-tag-implies-end-tag
    1.29 +(1,35): adoption-agency-1.3
    1.30 +(1,35): adoption-agency-1.3
    1.31 +(1,35): expected-closing-tag-but-got-eof
    1.32 +#document
    1.33 +| <html>
    1.34 +|   <head>
    1.35 +|   <body>
    1.36 +|     <a>
    1.37 +|     <div>
    1.38 +|       <a>
    1.39 +|         <style>
    1.40 +|       <address>
    1.41 +|         <a>
    1.42 +|         <a>
    1.43 +
    1.44 +#data
    1.45 +<b><i><a><s><tt><div></b>first</b></div></tt></s></a>second</i>
    1.46 +#errors
    1.47 +3: Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>".
    1.48 +25: End tag "b" violates nesting rules.
    1.49 +34: Stray end tag "b".
    1.50 +63: Stray end tag "i".
    1.51 +#document
    1.52 +| <html>
    1.53 +|   <head>
    1.54 +|   <body>
    1.55 +|     <b>
    1.56 +|       <i>
    1.57 +|         <a>
    1.58 +|           <s>
    1.59 +|             <tt>
    1.60 +|     <a>
    1.61 +|       <s>
    1.62 +|         <tt>
    1.63 +|           <div>
    1.64 +|             <b>
    1.65 +|             "first"
    1.66 +|     "second"
    1.67 +
    1.68 +#data
    1.69 +<code foo="bar"><code><code><code><code></code></code></code></code>text</code>
    1.70 +#errors
    1.71 +16: Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>".
    1.72 +#document
    1.73 +| <html>
    1.74 +|   <head>
    1.75 +|   <body>
    1.76 +|     <code>
    1.77 +|       foo="bar"
    1.78 +|       <code>
    1.79 +|         <code>
    1.80 +|           <code>
    1.81 +|             <code>
    1.82 +|       "text"
    1.83 +
    1.84 +#data
    1.85 +<code foo="bar"><code><code><code><div><code></div></code></code></code></code>text</code>
    1.86 +#errors
    1.87 +16: Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>".
    1.88 +51: End tag "div" seen, but there were open elements.
    1.89 +45: Unclosed element "code".
    1.90 +58: No "code" element in scope but a "code" end tag seen.
    1.91 +#document
    1.92 +| <html>
    1.93 +|   <head>
    1.94 +|   <body>
    1.95 +|     <code>
    1.96 +|       foo="bar"
    1.97 +|       <code>
    1.98 +|         <code>
    1.99 +|           <code>
   1.100 +|             <div>
   1.101 +|               <code>
   1.102 +|       "text"

mercurial