2 "This test checks an orphan text node cannot be surrounded by the range. (bug31684)"
5 var range
= document
.createRange();
6 var text
= document
.createTextNode('hello');
7 var element
= document
.createElement("div");
8 range
.selectNodeContents(text
);
10 shouldThrow("range.surroundContents(element)", '"HierarchyRequestError: Failed to execute \'surroundContents\' on \'Range\': The container node is a detached character data node; no parent node is available for insertion."');