summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:05:27 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:05:27 -0400
commit3a74795a56e92313c1b33a54500917794ba09b72 (patch)
tree949f2d97d27713e6a8960b948e51644bcaf27c02 /dom/webidl
parent873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806 (diff)
downloaduxp-3a74795a56e92313c1b33a54500917794ba09b72.tar.gz
Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / TextNode.assignedSlot on closed shadow root
Tag #1375
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/Element.webidl4
-rw-r--r--dom/webidl/Text.webidl2
2 files changed, 3 insertions, 3 deletions
diff --git a/dom/webidl/Element.webidl b/dom/webidl/Element.webidl
index ddc5484421..f6d0f7f93e 100644
--- a/dom/webidl/Element.webidl
+++ b/dom/webidl/Element.webidl
@@ -238,9 +238,9 @@ partial interface Element {
// Shadow DOM v1
[Throws, Pref="nsDocument::IsWebComponentsEnabled"]
ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict);
- [Func="nsDocument::IsWebComponentsEnabled"]
+ [BinaryName="shadowRootByMode", Func="nsDocument::IsWebComponentsEnabled"]
readonly attribute ShadowRoot? shadowRoot;
- [Pref="nsDocument::IsWebComponentsEnabled"]
+ [BinaryName="assignedSlotByMode", Pref="nsDocument::IsWebComponentsEnabled"]
readonly attribute HTMLSlotElement? assignedSlot;
[CEReactions, Unscopable, SetterThrows, Pref="nsDocument::IsWebComponentsEnabled"]
attribute DOMString slot;
diff --git a/dom/webidl/Text.webidl b/dom/webidl/Text.webidl
index f7bd1a9711..c40b71cc53 100644
--- a/dom/webidl/Text.webidl
+++ b/dom/webidl/Text.webidl
@@ -19,7 +19,7 @@ interface Text : CharacterData {
};
partial interface Text {
- [Pref="dom.webcomponents.enabled"]
+ [BinaryName="assignedSlotByMode", Pref="dom.webcomponents.enabled"]
readonly attribute HTMLSlotElement? assignedSlot;
};