blob: af168a2c63c9f6a26df448e5561c2404d5ce4185 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!DOCTYPE html>
<head>
<script>
function doTest() {
var d = document.createElement("div");
d.textContent = "This is a test";
var l = document.getElementById("l");
l.textContent = "before";
l.appendChild(d);
l.appendChild(document.createTextNode("after"));
}
</script>
</head>
<body onload="doTest()">
<fieldset>
<legend style="border: 2px solid green">This is a test</legend>
First fieldset
</fieldset>
<fieldset>
<legend id="l" style="border: 2px solid green"></legend>
First fieldset
</fieldset>
</body>
|