blob: 4d697884548e4cfba1bbc6a22a1cee06779ce50f (
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
|
<!DOCTYPE html>
<html>
<head>
<title>Ensure that [TreatNullAs=EmptyString] works correctly</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body text="blue">
<h1>Ensure that [TreatNullAs=EmptyString] works correctly</h1>
<noscript><p>Javascript is disabled</p></noscript>
<script>
var e = document.createElement("p");
var t = document.createTextNode("Initial body text:\""+document.body.text+"\" (should be \"blue\")");
e.appendChild(t);
document.body.appendChild(e);
document.body.text = null;
var e2 = document.createElement("p");
var t2 = document.createTextNode("New body text:\""+document.body.text+"\" (should be \"\")");
e2.appendChild(t2);
document.body.appendChild(e2);
</script>
</body>
</html>
|