blob: 6cea4b5e4bb62dce1b25d92cf78e72014e8e016f [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: INVALID_NODE_TYPE_ERR: DOM Range Exception 2.
PASS r.surroundContents(document.createElement('a')) threw exception Error: BAD_BOUNDARYPOINTS_ERR: DOM Range Exception 1.
PASS r.surroundContents(document.createElement('a')) threw exception Error: HIERARCHY_REQUEST_ERR: DOM Exception 3.
PASS successfullyParsed is true
TEST COMPLETE