summaryrefslogtreecommitdiffstats
path: root/dom/webidl/ShadowRoot.webidl
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:04:42 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:04:42 -0400
commit873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806 (patch)
tree11bf691b4aed8b1a0834bdc7b7c1bc4eda739713 /dom/webidl/ShadowRoot.webidl
parent96dfc63bc583454fb895c7a23f685995f5410388 (diff)
downloadUXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.tar
UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.tar.gz
UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.tar.lz
UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.tar.xz
UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.zip
Bug 1404842 - Implement Element.attachShadow and Element.slot
Tag #1375
Diffstat (limited to 'dom/webidl/ShadowRoot.webidl')
-rw-r--r--dom/webidl/ShadowRoot.webidl13
1 files changed, 12 insertions, 1 deletions
diff --git a/dom/webidl/ShadowRoot.webidl b/dom/webidl/ShadowRoot.webidl
index 90e6b6467..47e6cf5ec 100644
--- a/dom/webidl/ShadowRoot.webidl
+++ b/dom/webidl/ShadowRoot.webidl
@@ -10,16 +10,27 @@
* liability, trademark and document use rules apply.
*/
+// https://dom.spec.whatwg.org/#enumdef-shadowrootmode
+enum ShadowRootMode {
+ "open",
+ "closed"
+};
+
+// https://dom.spec.whatwg.org/#shadowroot
[Func="nsDocument::IsWebComponentsEnabled"]
interface ShadowRoot : DocumentFragment
{
+ // Shadow DOM v1
+ readonly attribute ShadowRootMode mode;
+ readonly attribute Element host;
+
+ // [deprecated] Shadow DOM v0
Element? getElementById(DOMString elementId);
HTMLCollection getElementsByTagName(DOMString localName);
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
HTMLCollection getElementsByClassName(DOMString classNames);
[CEReactions, SetterThrows, TreatNullAs=EmptyString]
attribute DOMString innerHTML;
- readonly attribute Element host;
attribute boolean applyAuthorStyles;
readonly attribute StyleSheetList styleSheets;
};