mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
Bug 1406325 - Part 4: Use mType for LookupCustomElementDefinition and also removing parts of v0.
Tag UXP Issue #1344
This commit is contained in:
@@ -429,9 +429,12 @@ nsHtml5TreeOperation::CreateHTMLElement(
|
||||
|
||||
isCustomElement = (aCreator == NS_NewCustomElement || !isValue.IsEmpty());
|
||||
if (isCustomElement && aFromParser != dom::FROM_PARSER_FRAGMENT) {
|
||||
RefPtr<nsIAtom> tagAtom = nodeInfo->NameAtom();
|
||||
RefPtr<nsIAtom> typeAtom =
|
||||
isValue.IsEmpty() ? tagAtom : NS_Atomize(isValue);
|
||||
|
||||
definition = nsContentUtils::LookupCustomElementDefinition(document,
|
||||
nodeInfo->LocalName(), nodeInfo->NamespaceID(),
|
||||
(isValue.IsEmpty() ? nullptr : &isValue));
|
||||
nodeInfo->LocalName(), nodeInfo->NamespaceID(), typeAtom);
|
||||
|
||||
if (definition) {
|
||||
willExecuteScript = true;
|
||||
|
||||
Reference in New Issue
Block a user