Please sign in to comment.
insertBefore: no error if refChild === newChild.
This mirrors the behavior in current WebKit, Firefox and Opera. The spec mentions removing the newChild from its parent if it has a parent, but this doesn't need to happen if newChild === refChild as no changes need to be made to the element order.
- Loading branch information...
Showing with 18 additions and 0 deletions.