normalize() {
        let child = this.firstChild;
        while (child) {
            const next = child.nextSibling;
            if (next && utils_1.isText(next) && utils_1.isText(child)) {
                this.removeChild(next);
                child.appendData(next.data);
            }
            else {
                child.normalize();
                child = next;
            }
        }
    }
// Modified in DOM Level 2:
Modified in DOM Level 2.
Modified in DOM Level 2 .
normalize() {
        let child = this.firstChild;
        while (child) {
            const next = child.nextSibling;
            if (next && utils_1.isText(next) && utils_1.isText(child)) {
                this.removeChild(next);
                child.appendData(next.data);
            }
            else {
                child.normalize();
                child = next;
            }
        }
    }
normalize ( ) { let child = this . firstChild ; while ( child ) { const next = child . nextSibling ; if ( next && utils_1 . isText ( next ) && utils_1 . isText ( child ) ) { this . removeChild ( next ) ; child . appendData ( next . data ) ; } else { child . normalize ( ) ; child = next ; } } }
Modified in DOM Level 2:
Modified in DOM Level 2 :