Removed custom generator and adapted the TagBuilder for generate the document.registerElement