2 <script src=
"../../../resources/js-test.js"></script>
5 description('This tests the NonDocumentTypeChildNode interface nextElementSibling property on a Text node.');
7 var element
= document
.createElement('div');
8 var a
= element
.appendChild(new Text('a'));
9 shouldBeNull('a.nextElementSibling');
10 var b
= element
.appendChild(document
.createElement('b'));
11 shouldBe('a.nextElementSibling', 'b');
12 var c
= element
.insertBefore(new Comment('c'), b
);
13 shouldBe('a.nextElementSibling', 'b');