You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/web/api/element/attachshadow/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ attachShadow(options)
84
84
When a non-focusable part of the shadow DOM is clicked, the first focusable part is given focus, and the shadow host is given any available `:focus`styling. Its default value is `false`.
-:A string specifying the _reference target_of any element references made against the host elementof the shadow DOMtree. The reference target must be an element held within the shadow DOM.
87
+
-:A string value that indicates the effective targetof any element reference made against the shadow host from outside the host element. The value should be the IDofan element inside the shadow DOM. If set, target references to the host element from outside the shadow DOM will cause the referenced target element to become the effective target of the reference to the host element.
88
88
89
89
-`serializable` {{Optional_Inline}}
90
90
-:A boolean that, when set to `true`, indicates that the shadow root is serializable.
- : A string value that indicates the effective target of any element reference made against the shadow host from outside the host element.
42
+
- : A string value that indicates the effective target of any element reference made against the shadow host from outside the host element. The value should be the ID of an element inside the shadow DOM. If set, target references to the host element from outside the shadow DOM will cause the referenced target element to become the effective target of the reference to the host element.
- : A boolean that indicates whether the shadow root is serializable.
45
45
A serializable shadow root inside an element will be serialized by {{DOMxRef('Element.getHTML()')}} or {{DOMxRef('ShadowRoot.getHTML()')}} when its [`options.serializableShadowRoots`](/en-US/docs/Web/API/Element/getHTML#serializableshadowroots) parameter is set `true`.
0 commit comments