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
commit601b5f142c958fd71431d2cfda7dee13735cd62f (patch)
treeeda5daf511829e83980e624d569e11fba2497d7d /dom/bindings
parent181c146d95fa3c080d8dac3274c11d12b99c26e6 (diff)
downloadaura-central-601b5f142c958fd71431d2cfda7dee13735cd62f.tar.gz
Bug 1359346 - Implement custom element state;
https://dom.spec.whatwg.org/%concept-element-custom-element-state Tag UXP Issue mcp-graveyard/UXP%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 c6452501a..6c35da05e 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();
}