Skip to content

Commit 648e483

Browse files
meyerwebalice
andauthored
Apply suggestions from @alice’s review
Co-authored-by: Alice <[email protected]>
1 parent 5892a7d commit 648e483

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

files/en-us/web/api/element/attachshadow/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ attachShadow(options)
8484
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`.
8585

8686
- `referenceTarget` {{Optional_Inline}} {{Experimental_Inline}}
87-
- : A string specifying the _reference target_ of any element references made against the host element of the shadow DOM tree. The reference target must be an element held within the shadow DOM.
87+
- : 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.
8888

8989
- `serializable` {{Optional_Inline}}
9090
- : A boolean that, when set to `true`, indicates that the shadow root is serializable.

files/en-us/web/api/shadowroot/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You can retrieve a reference to an element's shadow root using its {{domxref("El
3939
- : Returns the {{DOMxRef('Element')}} set as the target for mouse events while the pointer is locked.
4040
`null` if lock is pending, pointer is unlocked, or if the target is in another tree.
4141
- `ShadowRoot.referenceTarget` {{ReadOnlyInline}} {{Experimental_Inline}}
42-
- : 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.
4343
- {{DOMxRef("ShadowRoot.serializable")}} {{ReadOnlyInline}}
4444
- : A boolean that indicates whether the shadow root is serializable.
4545
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

Comments
 (0)