-
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.
Disallow mismatches between custom element local names and brands
Without this fix, it is possible to install the brand for one type of element on an element with a different local name, in one of two different ways (both shown here as examples). This fix makes the super() call throw when this is attempted, preserving the invariant that a brand is only installed on an element with the correct local name. Originally discussed at https://bugs.chromium.org/p/chromium/issues/detail?id=619062.
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 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