/src/main/java/org/htmlunit/html/DomElement.java
if ( sibling != null ) { sibling.remove ( ) ; }
@Override public void remove() { if (nextElement_ == null) { throw new IllegalStateException(); } final DomNode sibling = nextElement_.getPreviousSibling(); <extra_id_0> } private void setNextElement(final DomNode node) { DomNode next = node.getNextSibling(); while (next != null && !(next instanceof DomElement)) { next = next.getNextSibling(); }