content/html/document/reftests/bug448564-1_malformed.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/html/document/reftests/bug448564-1_malformed.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +  <link rel="stylesheet" type="text/css"
     1.7 +        href="bug448564_forms.css">
     1.8 +  </link>
     1.9 +</head>
    1.10 +<body>
    1.11 +  <i><b>
    1.12 +    <form>a</form> <!-- These forms should not end up nested! -->
    1.13 +    <form>b</form>
    1.14 +    <!-- Why does it matter whether we explicitly close this tag? -->
    1.15 +    <!-- It matters because nsHTMLTokenizer::ScanDocStructure checks
    1.16 +         whether there are any malformed tags before parsing begins,
    1.17 +         and, if there are any, residual style tags (<i>, <b>, &c.)
    1.18 +         must be pushed inside block elements (e.g., <form>). -->
    1.19 +    <div><!-- </div> -->
    1.20 +  </b></i>
    1.21 +</body>
    1.22 +</html>

mercurial