Bug 1309147 - Part 4: Add CEReactions for CustomElementRegistry.

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-04 10:32:21 -05:00 committed by Roy Tam
commit cc71e21e02
3 changed files with 2 additions and 10 deletions

View file

@ -5770,6 +5770,7 @@ nsDocument::RegisterElement(JSContext* aCx, const nsAString& aType,
return;
}
AutoCEReaction ceReaction(this->GetDocGroup()->CustomElementReactionsStack());
// Unconditionally convert TYPE to lowercase.
nsAutoString lcType;
nsContentUtils::ASCIIToLower(aType, lcType);