Range.insertNode should verify parent before setting end to it
This is because ContainerNode::insertBefore would cause mutation in tree. So this CL adds code block to throw exception if parent is not avaiable. In addition, http://crbug.com/399230 will be fixed with this CL. BUG=399230 TEST=LayoutTests/fast/dom/Range/surroundContents-for-mutation.html Review URL: https://codereview.chromium.org/443103002 git-svn-id: svn://svn.chromium.org/blink/trunk@179828 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment