diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-19 23:33:52 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:46 -0500 |
commit | 93313b0ce3aada87f76948e6c65d455ee4998acf (patch) | |
tree | fd8285a120168d8c6adf004c5822b4379acd4b46 /dom/base/nsContentUtils.h | |
parent | fb657f7a1e3ef326214e0c42a5a0dd6dc0109338 (diff) | |
download | UXP-93313b0ce3aada87f76948e6c65d455ee4998acf.tar UXP-93313b0ce3aada87f76948e6c65d455ee4998acf.tar.gz UXP-93313b0ce3aada87f76948e6c65d455ee4998acf.tar.lz UXP-93313b0ce3aada87f76948e6c65d455ee4998acf.tar.xz UXP-93313b0ce3aada87f76948e6c65d455ee4998acf.zip |
Bug 1406325 - Part 5: Implement try to upgrade.
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/nsContentUtils.h')
-rw-r--r-- | dom/base/nsContentUtils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/base/nsContentUtils.h b/dom/base/nsContentUtils.h index 367ea7c13..19b007591 100644 --- a/dom/base/nsContentUtils.h +++ b/dom/base/nsContentUtils.h @@ -2712,6 +2712,12 @@ public: static bool HttpsStateIsModern(nsIDocument* aDocument); /** + * Try to upgrade an element. + * https://html.spec.whatwg.org/multipage/custom-elements.html#concept-try-upgrade + */ + static void TryToUpgradeElement(Element* aElement); + + /** * Looking up a custom element definition. * https://html.spec.whatwg.org/#look-up-a-custom-element-definition */ @@ -2721,6 +2727,9 @@ public: uint32_t aNameSpaceID, nsIAtom* aTypeAtom); + static void RegisterUnresolvedElement(Element* aElement, nsIAtom* aTypeName); + static void UnregisterUnresolvedElement(Element* aElement); + static mozilla::dom::CustomElementDefinition* GetElementDefinitionIfObservingAttr(Element* aCustomElement, nsIAtom* aExtensionType, |