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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 #data
     2 <b>1<i>2<p>3</b>4
     3 #errors
     4 (1,3): expected-doctype-but-got-start-tag
     5 (1,16): adoption-agency-1.3
     6 (1,17): expected-closing-tag-but-got-eof
     7 #document
     8 | <html>
     9 |   <head>
    10 |   <body>
    11 |     <b>
    12 |       "1"
    13 |       <i>
    14 |         "2"
    15 |     <i>
    16 |       <p>
    17 |         <b>
    18 |           "3"
    19 |         "4"
    21 #data
    22 <a><div><style></style><address><a>
    23 #errors
    24 (1,3): expected-doctype-but-got-start-tag
    25 (1,35): unexpected-start-tag-implies-end-tag
    26 (1,35): adoption-agency-1.3
    27 (1,35): adoption-agency-1.3
    28 (1,35): expected-closing-tag-but-got-eof
    29 #document
    30 | <html>
    31 |   <head>
    32 |   <body>
    33 |     <a>
    34 |     <div>
    35 |       <a>
    36 |         <style>
    37 |       <address>
    38 |         <a>
    39 |         <a>
    41 #data
    42 <b><i><a><s><tt><div></b>first</b></div></tt></s></a>second</i>
    43 #errors
    44 3: Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>".
    45 25: End tag "b" violates nesting rules.
    46 34: Stray end tag "b".
    47 63: Stray end tag "i".
    48 #document
    49 | <html>
    50 |   <head>
    51 |   <body>
    52 |     <b>
    53 |       <i>
    54 |         <a>
    55 |           <s>
    56 |             <tt>
    57 |     <a>
    58 |       <s>
    59 |         <tt>
    60 |           <div>
    61 |             <b>
    62 |             "first"
    63 |     "second"
    65 #data
    66 <code foo="bar"><code><code><code><code></code></code></code></code>text</code>
    67 #errors
    68 16: Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>".
    69 #document
    70 | <html>
    71 |   <head>
    72 |   <body>
    73 |     <code>
    74 |       foo="bar"
    75 |       <code>
    76 |         <code>
    77 |           <code>
    78 |             <code>
    79 |       "text"
    81 #data
    82 <code foo="bar"><code><code><code><div><code></div></code></code></code></code>text</code>
    83 #errors
    84 16: Start tag seen without seeing a doctype first. Expected "<!DOCTYPE html>".
    85 51: End tag "div" seen, but there were open elements.
    86 45: Unclosed element "code".
    87 58: No "code" element in scope but a "code" end tag seen.
    88 #document
    89 | <html>
    90 |   <head>
    91 |   <body>
    92 |     <code>
    93 |       foo="bar"
    94 |       <code>
    95 |         <code>
    96 |           <code>
    97 |             <div>
    98 |               <code>
    99 |       "text"

mercurial