You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a $ character in constructor function name and constructor function is passed as the second argument to document.register, following exception is thrown:
InvalidCharacterError: The string contains invalid characters.
Following code snippet illustrates the problem:
functionA$A(){}A$A.prototype=Object.create(HTMLButtonElement.prototype);newdocument.register("a-a",A$A)();// Failsnewdocument.register("a-a",{prototype: A$A.prototype})();// Works
(Tested in Chrome 32.0.1700.41 beta - experimental Web Platform features is disabled)
The text was updated successfully, but these errors were encountered:
When resolving the final tag name, definition.tag is populated by defintion.name in the fallback case, and this means that new A$A will translate to document.createElement('A$A') instead of document.createElement('a-a')
If there is a $ character in constructor function name and constructor function is passed as the second argument to document.register, following exception is thrown:
Following code snippet illustrates the problem:
(Tested in Chrome 32.0.1700.41 beta - experimental Web Platform features is disabled)
The text was updated successfully, but these errors were encountered: