diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-04 13:24:58 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:16 -0500 |
commit | e86aac28b8f450cc99836b07a5c0ffddb59f222f (patch) | |
tree | eda5daf511829e83980e624d569e11fba2497d7d /dom/bindings | |
parent | 88925e150bbcb64d1787b374c2115e6e28c3f6df (diff) | |
download | uxp-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.cpp | 3 |
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(); } |