insertBefore(newChild, refChild) {
        // raises
        const _newChild = document_utils_1._insertBefore(this, utils_1.asChildNode(newChild), refChild == null ? null : utils_1.asChildNode(refChild));
        // notify observers
        this.queueMutation({
            type: 'childList',
            target: this,
            addedNodes: new node_list_1.NodeListImpl(_newChild),
            removedNodes: new node_list_1.NodeListImpl(),
            previousSibling: _newChild.previousSibling,
            nextSibling: _newChild.nextSibling,
            attributeName: null,
            attributeNamespace: null,
            oldValue: null,
        });
        return _newChild;
    }
// Modified in DOM Level 2:
Modified in DOM Level 2.
Modified in DOM Level 2 .
insertBefore(newChild, refChild) {
        const _newChild = document_utils_1._insertBefore(this, utils_1.asChildNode(newChild), refChild == null ? null : utils_1.asChildNode(refChild));
        this.queueMutation({
            type: 'childList',
            target: this,
            addedNodes: new node_list_1.NodeListImpl(_newChild),
            removedNodes: new node_list_1.NodeListImpl(),
            previousSibling: _newChild.previousSibling,
            nextSibling: _newChild.nextSibling,
            attributeName: null,
            attributeNamespace: null,
            oldValue: null,
        });
        return _newChild;
    }
insertBefore ( newChild , refChild ) { const _newChild = document_utils_1 . _insertBefore ( this , utils_1 . asChildNode ( newChild ) , refChild == null ? null : utils_1 . asChildNode ( refChild ) ) ; this . queueMutation ( { type : 'childList' , target : this , addedNodes : new node_list_1 . NodeListImpl ( _newChild ) , removedNodes : new node_list_1 . NodeListImpl ( ) , previousSibling : _newChild . previousSibling , nextSibling : _newChild . nextSibling , attributeName : null , attributeNamespace : null , oldValue : null , } ) ; return _newChild ; }
Modified in DOM Level 2:
Modified in DOM Level 2 :
// raises // notify observers