_serializeSpecial(node) {
        this.pushBuffer();
        let handledObj;
        const { name, attribs: attributes } = node;
        if (this.handleTags.includes(name)) {
            handledObj = Object.assign({}, { name: name, attributes });
            this.serializedList.push(handledObj);
            this._serializeChildNodes(node);
            this.pushBuffer();
        } else {
            // For handling the script type other than text/javascript
            this._serializeChildNodes(node);
            handledObj = Object.assign(
                {},
                {
                    name: attributes.type,
                    attributes,
                    textContent: this.getHtmlContent()
                }
            );
            this.serializedList.push(handledObj);
        }
        this.serializedList.push({ closingTag: name });
    }
Serialize the nodes passed via handleTags

@param {object} node

// Input
<fragment src="http://example.com" async primary></fragment>

// Output
{
   name: 'fragment',
   attributes: {
      async: '',
      primary: ''
   },
}