rniwa@webkit.org | 3cf8e8d | 2019-03-19 22:25:44 +0000 | [diff] [blame] | 1 | This tests re-parenting a child of the document fragment during an insertion so as to create a circular node tree. |
| 2 | WebKit should detect this case and throw HierarchyRequestError. |
| 3 | |
| 4 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 5 | |
| 6 | |
| 7 | PASS container.replaceChild(fragment, refChild) threw exception HierarchyRequestError: The operation would yield an incorrect node tree.. |
| 8 | PASS container.parentNode is child |
| 9 | PASS child.parentNode is null |
| 10 | PASS successfullyParsed is true |
| 11 | |
| 12 | TEST COMPLETE |
| 13 | |