mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
19
tests/content/test_document_set_node_value.html
Normal file
19
tests/content/test_document_set_node_value.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<script src="harness.js"></script>
|
||||
<body>
|
||||
<div id="div" class="div-class">A</div>
|
||||
<p>P</p>
|
||||
<script>
|
||||
is(document.nodeValue, null);
|
||||
var div = document.getElementById("div");
|
||||
is(div.nodeValue, null);
|
||||
is(div.firstChild.nodeValue, "A");
|
||||
div.firstChild.nodeValue = "B";
|
||||
is(div.firstChild.nodeValue, "B");
|
||||
var commentNode = document.createComment("comment node");
|
||||
is(commentNode.nodeValue, "comment node");
|
||||
finish();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue