blob: 1d31bbf35d4745b279a7f281fa9c164060ee4c4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!doctype html>
<title>document.write</title>
<script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
<script>
var t = async_test();
t.step(function() {
document.write("<body><");
});
</script>!--comment-->
<script>
t.step(function() {
assert_equals(document.body.childNodes[0].nodeType, document.COMMENT_NODE);
assert_equals(document.body.childNodes[0].data, "comment");
}
);
t.done();
</script>
<div id="log"></div>
|