Skip to content

Commit 2aab908

Browse files
committed
Update wording
1 parent 67d2a86 commit 2aab908

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ attachShadow(options)
8383
- : A boolean that, when set to `true`, specifies behavior that mitigates custom element issues around focusability.
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

86+
- `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.
88+
8689
- `serializable` {{Optional_Inline}}
8790
- : A boolean that, when set to `true`, indicates that the shadow root is serializable.
8891
If set, the shadow root may be serialized by calling the {{DOMxRef('Element.getHTML()')}} or {{DOMxRef('ShadowRoot.getHTML()')}} methods with the `options.serializableShadowRoots` parameter set `true`.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ You can retrieve a reference to an element's shadow root using its {{domxref("El
3838
- {{DOMxRef("ShadowRoot.pointerLockElement")}} {{ReadOnlyInline}}
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.
41+
- `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.
4143
- {{DOMxRef("ShadowRoot.serializable")}} {{ReadOnlyInline}}
4244
- : A boolean that indicates whether the shadow root is serializable.
4345
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`.

files/en-us/web/html/reference/elements/template/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Reference/Glo
3838
If this is set and a non-focusable element in the shadow tree is selected, then focus is delegated to the first focusable element in the tree.
3939
The value defaults to `false`.
4040

41+
- `shadowrootreferencetarget` {{Experimental_Inline}}
42+
- : Sets the value of the `referenceTarget` property of a [`ShadowRoot`](/en-US/docs/Web/API/ShadowRoot) created using this 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.
43+
4144
- `shadowrootserializable`
4245
- : Sets the value of the [`serializable`](/en-US/docs/Web/API/ShadowRoot/serializable) property of a [`ShadowRoot`](/en-US/docs/Web/API/ShadowRoot) created using this element to `true`.
4346
If set, the shadow root may be serialized by calling the {{DOMxRef('Element.getHTML()')}} or {{DOMxRef('ShadowRoot.getHTML()')}} methods with the `options.serializableShadowRoots` parameter set `true`.

0 commit comments

Comments
 (0)