summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 06:38:37 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 06:38:37 -0400
commit3758434680616e91edf696e546fe3cc3b1d4da9c (patch)
tree845788e5a7a90326c7026a7bd139bc222352a54f /dom/webidl
parent55d83ea6f9aa9d99963a4d1fb1f96a3b633ede49 (diff)
downloaduxp-3758434680616e91edf696e546fe3cc3b1d4da9c.tar.gz
Bug 1408341 - Implement assignedSlot on Element and Text
Tag #1375
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/Element.webidl2
-rw-r--r--dom/webidl/Text.webidl5
2 files changed, 7 insertions, 0 deletions
diff --git a/dom/webidl/Element.webidl b/dom/webidl/Element.webidl
index a6b2bfdd5c..7fc59d614a 100644
--- a/dom/webidl/Element.webidl
+++ b/dom/webidl/Element.webidl
@@ -236,6 +236,8 @@ partial interface Element {
NodeList getDestinationInsertionPoints();
[Func="nsDocument::IsWebComponentsEnabled"]
readonly attribute ShadowRoot? shadowRoot;
+ [Pref="nsDocument::IsWebComponentsEnabled"]
+ readonly attribute HTMLSlotElement? assignedSlot;
};
Element implements ChildNode;
diff --git a/dom/webidl/Text.webidl b/dom/webidl/Text.webidl
index dcd25cec3a..f7bd1a9711 100644
--- a/dom/webidl/Text.webidl
+++ b/dom/webidl/Text.webidl
@@ -18,4 +18,9 @@ interface Text : CharacterData {
readonly attribute DOMString wholeText;
};
+partial interface Text {
+ [Pref="dom.webcomponents.enabled"]
+ readonly attribute HTMLSlotElement? assignedSlot;
+};
+
Text implements GeometryUtils;