blob: 69a21b3f865e860a8be29a37468e09c670d4dcf7 [file] [log] [blame]
This tests re-parenting a child of the document fragment during an insertion so as to create a circular node tree.
WebKit should detect this case and throw HierarchyRequestError.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS container.insertBefore(fragment, refChild) threw exception HierarchyRequestError: The operation would yield an incorrect node tree..
PASS container.parentNode is childShadowRoot
PASS child.parentNode is null
PASS successfullyParsed is true
TEST COMPLETE