Chromium Code Reviews
Descriptionhttps://html.spec.whatwg.org/multipage/scripting.html#look-up-a-custom-element-definition
Steps 1-3 already implemented in:
/core/html/parser/HTMLConstructionSite.cpp
Steps 4-6 made a little faster in CustomElementRegistry.cpp
Unit tests added for custom element definition look up.
Replaced uses of definitionForName with definitionFor.
CustomElementRegistry.cpp
CustomElement.cpp
There are other calls to definitionForName, but those are fine according to spec.
I'll do another patch to use the 'is' attribute in definitionFor. Right now it's using the localName twice.
BUG=648828
Committed: https://crrev.com/24d712bfdf73e44b31fa9d058ba37e035cbe58ad
Cr-Commit-Position: refs/heads/master@{#430498}
Patch Set 1 #Patch Set 2 : lookup custom element definition #
Total comments: 6
Patch Set 3 : lookup custom element definition #Patch Set 4 : Unit tests for element definition look up #Patch Set 5 : Can't use 'is' yet #Patch Set 6 : Patch #
Dependent Patchsets: Messages
Total messages: 24 (13 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||