src/main/javascript/dom/floatz.dom.dom.js
/**
     * Get first child.
     *
     * @param {boolean} elementsOnly Consider all nodes (false) or only elements true). Default is false.
     * @returns {DOMElement} DOMElement or null if not an element
     */
Get first child.
@param {boolean} elementsOnly Consider all nodes (false) or only elements true). Default is false.
@returns {DOMElement} DOMElement or null if not an element
Get first child . @param { boolean } elementsOnly Consider all nodes ( false ) or only elements true ) . Default is false . @returns { DOMElement } DOMElement or null if not an element
firstChild(elementsOnly = false) {
        let child = elementsOnly ? this.origNode().firstElementChild : this.origNode().firstChild;
        if (child instanceof Element) {
            return new DOMElement(child);
        }
        return null;
    }
firstChild ( elementsOnly = false ) { let child = elementsOnly ? this . origNode ( ) . firstElementChild : this . origNode ( ) . firstChild ; if ( child instanceof Element ) { return new DOMElement ( child ) ; } return null ; }
Get first child.
Get first child .
// TODO Support DOMText as well