diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index 64d7c2f0bd58bd5..8169f0c4e310e32 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -7559,8 +7559,6 @@ /en-US/docs/Web/API/DocumentOrShadowRoot/fullscreenElement /en-US/docs/Web/API/Document/fullscreenElement /en-US/docs/Web/API/DocumentOrShadowRoot/getAnimations /en-US/docs/Web/API/Document/getAnimations /en-US/docs/Web/API/DocumentOrShadowRoot/getSelection /en-US/docs/Web/API/Document/getSelection -/en-US/docs/Web/API/DocumentOrShadowRoot/nodeFromPoint /en-US/docs/Web/API/DocumentOrShadowRoot -/en-US/docs/Web/API/DocumentOrShadowRoot/nodesFromPoint /en-US/docs/Web/API/DocumentOrShadowRoot /en-US/docs/Web/API/DocumentOrShadowRoot/pictureInPictureElement /en-US/docs/Web/API/Document/pictureInPictureElement /en-US/docs/Web/API/DocumentOrShadowRoot/pictureInPictureEnabled /en-US/docs/Web/API/Document/pictureInPictureEnabled /en-US/docs/Web/API/DocumentOrShadowRoot/pointerLockElement /en-US/docs/Web/API/Document/pointerLockElement diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 8de0bc83ce0e0d0..e1832f8c722d90b 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -44274,21 +44274,6 @@ "teoli" ] }, - "Web/API/DocumentOrShadowRoot": { - "modified": "2020-11-04T11:07:53.581Z", - "contributors": [ - "Rumyra", - "germain", - "mfuji09", - "chrisdavidmills", - "foolip", - "Sheppy", - "ExE-Boss", - "jpmedley", - "iainreid629", - "david_ross" - ] - }, "Web/API/DocumentTimeline": { "modified": "2020-10-15T21:45:09.763Z", "contributors": [ @@ -165786,4 +165771,4 @@ "jpmedley" ] } -} +} \ No newline at end of file diff --git a/files/en-us/web/api/documentorshadowroot/index.html b/files/en-us/web/api/documentorshadowroot/index.html deleted file mode 100644 index 3dc19ecd365076d..000000000000000 --- a/files/en-us/web/api/documentorshadowroot/index.html +++ /dev/null @@ -1,79 +0,0 @@ ---- -title: DocumentOrShadowRoot -slug: Web/API/DocumentOrShadowRoot -tags: - - API - - Document - - DocumentOrShadowRoot - - Interface - - Reference - - ShadowRoot - - shadow dom ---- -
{{APIRef("Web Components")}}
- -

The DocumentOrShadowRoot mixin of the Shadow DOM API provides APIs that are shared between documents and shadow roots. The following features are included in both {{DOMxRef("Document")}} and {{DOMxRef("ShadowRoot")}}.

- -

Properties

- -
-
{{DOMxRef("Document.activeElement")}}{{ReadOnlyInline}}
-
Returns the {{DOMxRef('Element')}} within the shadow tree that has focus.
-
{{DOMxRef("Document.fullscreenElement")}}{{ReadOnlyInline}}
-
Returns the {{DOMxRef('Element')}} that's currently in full screen mode for this document.
-
{{DOMxRef("Document.pictureInPictureElement")}}{{ReadOnlyInline}}
-
Returns the {{DOMxRef('HTMLVideoElement')}} that's currently in picture-in-picture mode for this document.
-
{{DOMxRef("Document.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}
-
Returns the element set as the target for mouse events while the pointer is locked. It returns null if lock is pending, the pointer is unlocked, or if the target is in another document.
-
{{DOMxRef("Document.styleSheets")}}{{ReadOnlyInline}}
-
Returns a {{DOMxRef('StyleSheetList')}} of {{DOMxRef('CSSStyleSheet')}} objects for stylesheets explicitly linked into, or embedded in a document.
-
- -

Methods

- -
-
{{DOMxRef("DocumentOrShadowRoot.caretPositionFromPoint()")}}
-
Returns a {{DOMxRef('CaretPosition')}} object containing the DOM node containing the caret, and caret's character offset within that node.
-
{{DOMxRef("DocumentOrShadowRoot.elementFromPoint()")}}
-
Returns the topmost element at the specified coordinates.
-
{{DOMxRef("DocumentOrShadowRoot.elementsFromPoint()")}}
-
Returns an array of all elements at the specified coordinates.
-
{{DOMxRef("DocumentOrShadowRoot.getAnimations()")}} {{Experimental_Inline}}
-
Returns an array of all {{DOMxRef("Animation")}} objects currently in effect, whose target elements are descendants of the document
-
{{DOMxRef("DocumentOrShadowRoot.getSelection()")}}
-
Returns a {{DOMxRef('Selection')}} object representing the range of text selected by the user, or the current position of the caret.
-
{{DOMxRef("DocumentOrShadowRoot.nodeFromPoint()")}} {{non-standard_inline}}
-
Returns the topmost node at the specified coordinates.
-
{{DOMxRef("DocumentOrShadowRoot.nodesFromPoint()")}} {{non-standard_inline}}
-
Returns an array of all nodes at the specified coordinates.
-
- -

Specifications

- - - - - - - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}{{Spec2('Shadow DOM')}}Implementation in Shadow DOM.
{{SpecName('DOM WHATWG','#mixin-documentorshadowroot','DocumentOrShadowRoot')}}{{Spec2('DOM WHATWG')}}Initial definition.
- -

Browser compatibility

- -

{{Compat("api.DocumentOrShadowRoot")}}

- -

[1] This interface's features are still implemented on the {{DOMxRef("Document")}} object.

diff --git a/files/en-us/web/api/picture-in-picture_api/index.html b/files/en-us/web/api/picture-in-picture_api/index.html index c5a9d32af2d3e1a..5cd5ebda25701aa 100644 --- a/files/en-us/web/api/picture-in-picture_api/index.html +++ b/files/en-us/web/api/picture-in-picture_api/index.html @@ -45,7 +45,7 @@

Methods on the Document interface

Properties -

The Picture-in-Picture API augments the {{DOMxRef("HTMLVideoElement")}}, {{DOMxRef("Document")}}, and {{DOMxRef("DocumentOrShadowRoot")}} interfaces with properties that can be used to determine if the floating video window mode is supported and available, if picture-in-picture mode is currently active, and which video is floating.

+

The Picture-in-Picture API augments the {{DOMxRef("HTMLVideoElement")}}, {{DOMxRef("Document")}}, and {{DOMxRef("ShadowRoot")}} interfaces with properties that can be used to determine if the floating video window mode is supported and available, if picture-in-picture mode is currently active, and which video is floating.

Properties on the HTMLVideoElement interface

diff --git a/files/en-us/web/api/pointer_lock_api/index.html b/files/en-us/web/api/pointer_lock_api/index.html index 27668a71037c6ae..75c6aa767969399 100644 --- a/files/en-us/web/api/pointer_lock_api/index.html +++ b/files/en-us/web/api/pointer_lock_api/index.html @@ -48,9 +48,9 @@

requestPointerLock()

pointerLockElement and exitPointerLock()

-

The Pointer lock API also extends the {{domxref("Document")}} interface, adding both a new property and a new method. The new property is used for accessing the currently locked element (if any), and is named {{domxref("DocumentOrShadowRoot/pointerLockElement","pointerLockElement")}} and the new method on {{domxref("Document")}} is {{domxref("Document.exitPointerLock","exitPointerLock()")}} and, as the name implies, it is used to exit the pointer lock.

+

The Pointer lock API also extends the {{domxref("Document")}} interface, adding both a new property and a new method. The new property is used for accessing the currently locked element (if any), and is named {{domxref("Document.pointerLockElement","pointerLockElement")}} and the new method on {{domxref("Document")}} is {{domxref("Document.exitPointerLock","exitPointerLock()")}} and, as the name implies, it is used to exit the pointer lock.

-

The {{domxref("DocumentOrShadowRoot/pointerLockElement","pointerLockElement")}} property is useful for determining if any element is currently pointer locked (e.g., for doing a Boolean check) and also for obtaining a reference to the locked element, if any.

+

The {{domxref("Document.pointerLockElement","pointerLockElement")}} property is useful for determining if any element is currently pointer locked (e.g., for doing a Boolean check) and also for obtaining a reference to the locked element, if any.

Here is an example of using pointerLockElement:

diff --git a/files/en-us/web/web_components/index.html b/files/en-us/web/web_components/index.html index 1db846e079d4f2c..ae0a9181ab59710 100644 --- a/files/en-us/web/web_components/index.html +++ b/files/en-us/web/web_components/index.html @@ -101,8 +101,6 @@

Shadow DOM

{{domxref("ShadowRoot")}}
Represents the root node of a shadow DOM subtree.
-
{{domxref("DocumentOrShadowRoot")}}
-
A mixin defining features that are available across document and shadow roots.
{{domxref("Element")}} extensions
Extensions to the Element interface related to shadow DOM: