support type-extension form of document.createElement