summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/476063-2.html
blob: f32eee68e2eec8dfb70fe230b5038fda66366691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<head>
  <script>
    function doTest() {
      var l = document.createElement("legend");
      l.textContent = "This is a test";
      l.style.border = "2px solid green";
      l.style.display = "block"
      document.getElementById("f1").appendChild(l);

      l = document.createElement("legend");
      var d = document.createElement("div");
      d.textContent = "This is a test";
      l.style.border = "2px solid green";
      l.style.display = "inline"
      l.textContent = "before";
      l.appendChild(d);
      l.appendChild(document.createTextNode("after"));
      document.getElementById("f2").appendChild(l);
    }
  </script>
</head>
<body onload="doTest()">
  <fieldset id="f1">
    First fieldset
  </fieldset>
  <fieldset id="f2">
    First fieldset
  </fieldset>
</body>