blob: 76d2aed5998c1e3ea70abf179c635751bb7fa885 [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: HierarchyRequestError: DOM Exception 3.
PASS successfullyParsed is true
TEST COMPLETE