/src/main/java/org/htmlunit/html/impl/SimpleRange.java
parent.insertBefore( item) ;
parent.insertBefore ( item, refNode ) ;
private static void insertNodeOrDocFragment(final DomNode parent, final DomNode newNode, final DomNode refNode) { if (newNode instanceof DocumentFragment) { final DocumentFragment fragment = (DocumentFragment) newNode; final NodeList childNodes = fragment.getChildNodes(); while (childNodes.getLength() > 0) { final Node item = childNodes.item(0); <extra_id_0> } } else { parent.insertBefore(newNode, refNode); } }