summaryrefslogtreecommitdiff
path: root/dom/html/reftests/bug448564-1_malformed.html
blob: 404517c70e5d7cf0d963d33afe902349cbac1ea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
  <link rel="stylesheet" type="text/css"
        href="bug448564_forms.css">
  </link>
</head>
<body>
  <i><b>
    <form>a</form> <!-- These forms should not end up nested! -->
    <form>b</form>
    <!-- Why does it matter whether we explicitly close this tag? -->
    <!-- It matters because nsHTMLTokenizer::ScanDocStructure checks
         whether there are any malformed tags before parsing begins,
         and, if there are any, residual style tags (<i>, <b>, &c.)
         must be pushed inside block elements (e.g., <form>). -->
    <div><!-- </div> -->
  </b></i>
</body>
</html>