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