https://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
Review-Url: https://codereview.chromium.org/2446903008
Cr-Commit-Position: refs/heads/master@{#430498}
4 files changed