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
commit0c582f74457fa6110c76ea059d37aef6ab928c51 (patch)
tree845788e5a7a90326c7026a7bd139bc222352a54f /dom/webidl
parentae3ebd490f370d86709cb9952e2b2af2bdfdc9c5 (diff)
downloadaura-central-0c582f74457fa6110c76ea059d37aef6ab928c51.tar.gz
Bug 1408341 - Implement assignedSlot on Element and Text
Tag mcp-graveyard/UXP%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 a6b2bfdd5..7fc59d614 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 dcd25cec3..f7bd1a971 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;