-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inaccuracies in custom element construction stack management
Fixes #1238. Usually, the popped stack entry is not the element, but instead an already-constructed marker. This makes the stack-popping generic, and also adds a note explaining exactly what could be going on here. Also clarifies the cases in which the already constructed marker matters. In addition to calling super() multiple times, this error case can be triggered by creating another instance of the class being constructed. This adds examples of both possibilities. Finally, fixes a typo in the HTMLElement() constructor which used the variable names "instance" and "element" interchangeably, and fixes a broken cross-reference to "upgrade an element".
- Loading branch information
Showing
1 changed file
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters