summaryrefslogtreecommitdiff
path: root/dom/bindings
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-04 13:24:58 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:16 -0500
commite86aac28b8f450cc99836b07a5c0ffddb59f222f (patch)
treeeda5daf511829e83980e624d569e11fba2497d7d /dom/bindings
parent88925e150bbcb64d1787b374c2115e6e28c3f6df (diff)
downloaduxp-e86aac28b8f450cc99836b07a5c0ffddb59f222f.tar.gz
Bug 1359346 - Implement custom element state;
https://dom.spec.whatwg.org/#concept-element-custom-element-state Tag UXP Issue #1344
Diffstat (limited to 'dom/bindings')
-rw-r--r--dom/bindings/BindingUtils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/bindings/BindingUtils.cpp b/dom/bindings/BindingUtils.cpp
index c6452501a9..6c35da05ea 100644
--- a/dom/bindings/BindingUtils.cpp
+++ b/dom/bindings/BindingUtils.cpp
@@ -3550,6 +3550,9 @@ CreateHTMLElement(const GlobalObject& aGlobal, const JS::CallArgs& aCallArgs,
element = CreateHTMLElement(tag, nodeInfo.forget(), NOT_FROM_PARSER);
}
+ element->SetCustomElementData(
+ new CustomElementData(definition->mType, CustomElementData::State::eCustom));
+
return element.forget();
}