diff options
author | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-05-11 12:47:27 -0600 |
---|---|---|
committer | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-06-05 09:18:54 -0600 |
commit | e21e64a33c6fa22342e006c08d0d41ad527dd9b8 (patch) | |
tree | da4a91d7c83548340a3d00b7453e511254585137 /components/script/dom/webidls/CustomElementRegistry.webidl | |
parent | bdf4135b6a91abb8b1c76f5fca5385b79fd97265 (diff) | |
download | servo-e21e64a33c6fa22342e006c08d0d41ad527dd9b8.tar.gz servo-e21e64a33c6fa22342e006c08d0d41ad527dd9b8.zip |
Add custom element registry
Diffstat (limited to 'components/script/dom/webidls/CustomElementRegistry.webidl')
-rw-r--r-- | components/script/dom/webidls/CustomElementRegistry.webidl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/components/script/dom/webidls/CustomElementRegistry.webidl b/components/script/dom/webidls/CustomElementRegistry.webidl new file mode 100644 index 00000000000..263726e1e47 --- /dev/null +++ b/components/script/dom/webidls/CustomElementRegistry.webidl @@ -0,0 +1,18 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// https://html.spec.whatwg.org/multipage/#customelementregistry +[Pref="dom.customelements.enabled"] +interface CustomElementRegistry { + [Throws/*, CEReactions */] + void define(DOMString name, Function constructor_, optional ElementDefinitionOptions options); + + any get(DOMString name); + + Promise<void> whenDefined(DOMString name); +}; + +dictionary ElementDefinitionOptions { + DOMString extends; +}; |