serialize() {
        this._serializeChildNodes(this.startNode);
        this.pushBuffer();
        return this.serializedList;
    }
Overidden the serialize function of parse5 Serializer

this.startNode - Denotes the root node
@returns {Array}