blob: 7ab97f91ad191842343b074402683300d6f24f5a [file] [log] [blame]
This test checks some DOM Range exceptions.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS node.innerHTML is '<bar>AB<moo>C</moo>DE</bar>'
PASS foo.outerHTML is '<foo></foo>'
PASS range.surroundContents(foo) threw exception Error: InvalidNodeTypeError: DOM Exception 24.
PASS r.surroundContents(document.createElement('a')) threw exception Error: InvalidStateError: DOM Exception 11.
PASS r.surroundContents(document.createElement('a')) threw exception Error: HierarchyRequestError: DOM Exception 3.
PASS successfullyParsed is true
TEST COMPLETE