/src/main/java/org/htmlunit/html/HtmlElement.java
appendChild( domText) ;appendChild( child) ;
appendChild ( child ) ;
} public final HtmlElement appendChildIfNoneExists(final String tagName) { final HtmlElement child; final List<HtmlElement> children = getElementsByTagName(tagName); if (children.isEmpty()) { child = (HtmlElement) ((HtmlPage) getPage()).createElement(tagName); <extra_id_0> } else { child = children.get(0); } return child; }