From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/web/api/element/assignedslot/index.html | 89 ++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 files/zh-cn/web/api/element/assignedslot/index.html (limited to 'files/zh-cn/web/api/element/assignedslot/index.html') diff --git a/files/zh-cn/web/api/element/assignedslot/index.html b/files/zh-cn/web/api/element/assignedslot/index.html new file mode 100644 index 0000000000..c586eeae45 --- /dev/null +++ b/files/zh-cn/web/api/element/assignedslot/index.html @@ -0,0 +1,89 @@ +--- +title: Element.assignedSlot +slug: Web/API/Element/assignedSlot +translation_of: Web/API/Slottable/assignedSlot +--- +

{{SeeCompatTable}}{{APIRef("Shadow DOM")}}

+ +

The assignedSlot property of the {{domxref("Element")}} interface returns the {{domxref("HTMLSlotElement")}} interface associated with the element.

+ +

Syntax

+ +
var htmlSlotElement = element.assignedSlot
+ +

Value

+ +

An instance of {{domxref("HTMLSlotElement")}}.

+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('DOM WHATWG','#dom-slotable-assignedslot','assignedSlot')}}{{Spec2('DOM WHATWG')}}
+ +

Browser Compatibility

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(53.0)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatChrome(53.0)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatChrome(53.0)}}
+
-- cgit v1.2.3-54-g00ecf