function registerCustomElement(localName, typeExtension, prototype)
{
    return document.registerElement(typeExtension, {
        prototype: Object.create(prototype),
        extends: localName
    });
}
@param {string} localName
@param {string} typeExtension
@param {!Object} prototype
@return {function()}
@suppressGlobalPropertiesCheck
@template T