src/main/java/org/jsoup/nodes/Element.java
/**
     * Add inner HTML to this element. The supplied HTML will be parsed, and each node prepended to the start of the children.
     * @param html HTML to add inside this element, before the existing HTML
     * @return this element
     * @see #html(String)
     */
Add inner HTML to this element. The supplied HTML will be parsed, and each node prepended to the start of the children.
@param html HTML to add inside this element, before the existing HTML
@return this element
@see #html(String)
Add inner HTML to this element . The supplied HTML will be parsed and each node prepended to the start of the children . @param html HTML to add inside this element before the existing HTML @return this element @see #html ( String )
public Element prepend(String html) {
        Validate.notNull(html);
        Element fragment = Parser.parseBodyFragment(html, baseUri).body();
        List<Node> nodes = fragment.childNodes();
        for (int i = nodes.size() - 1; i >= 0; i--) {
            Node node = nodes.get(i);
            node.parentNode = null;
            prependChild(node);
        }
        return this;
    }
public Element prepend ( String html ) { Validate . notNull ( html ) ; Element fragment = Parser . parseBodyFragment ( html , baseUri ) . body ( ) ; List < Node > nodes = fragment . childNodes ( ) ; for ( int i = nodes . size ( ) - 1 ; i >= 0 ; i -- ) { Node node = nodes . get ( i ) ; node . parentNode = null ; prependChild ( node ) ; } return this ; }
Add inner HTML to this element.
Add inner HTML to this element .
// TODO: must parse without implicit elements, so you can e.g. add <td> to a <tr> (without creating a whole new table)