The DocumentOrShadowRoot mixin of the Shadow DOM API provides
that are shared between documents and shadow roots. The following
are included in both web.Document
and web.ShadowRoot
.
The DocumentOrShadowRoot mixin of the Shadow DOM API provides that are shared between documents and shadow roots. The following are included in both `web.Document` and `web.ShadowRoot`.
(active-element this)
Property.
The activeElement read-only property of the web.Document
and
interfaces returns the web.Element
within the DOM or shadow
tree that currently has focus.
var element = DocumentOrShadowRoot.activeElement
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement
Property. The activeElement read-only property of the `web.Document` and interfaces returns the `web.Element` within the DOM or shadow tree that currently has focus. `var element = DocumentOrShadowRoot.activeElement` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement`
(caret-position-from-point this & args)
Method.
The caretPositionFromPoint() property of the web.DocumentOrShadowRoot
returns a web.CaretPosition
object, containing the DOM node,
with the caret and caret's character offset within that node.
var caretPosition = document.caretPositionFromPoint(float x, float y);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint
Method. The caretPositionFromPoint() property of the `web.DocumentOrShadowRoot` returns a `web.CaretPosition` object, containing the DOM node, with the caret and caret's character offset within that node. `var caretPosition = document.caretPositionFromPoint(float x, float y);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint`
(element-from-point this x y)
Method.
The elementFromPoint() method—available on both the web.Document
web.ShadowRoot
objects—returns the topmost web.Element
at
specified coordinates (relative to the viewport).
var element = document.elementFromPoint(x, y);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementFromPoint
Method. The elementFromPoint() method—available on both the `web.Document` `web.ShadowRoot` objects—returns the topmost `web.Element` at specified coordinates (relative to the viewport). `var element = document.elementFromPoint(x, y);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementFromPoint`
(elements-from-point this x y)
Method.
The elementsFromPoint() property of the web.DocumentOrShadowRoot
returns an array of all elements at the specified coordinates
to the viewport).
var elements = document.elementsFromPoint(x, y);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementsFromPoint
Method. The elementsFromPoint() property of the `web.DocumentOrShadowRoot` returns an array of all elements at the specified coordinates to the viewport). `var elements = document.elementsFromPoint(x, y);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementsFromPoint`
(fullscreen-element this)
Property.
The DocumentOrShadowRoot.fullscreenElement read-only property
the web.Element
that is currently being presented in full-screen
in this document, or null if full-screen mode is not currently
use.
var element = document.fullscreenElement;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/fullscreenElement
Property. The DocumentOrShadowRoot.fullscreenElement read-only property the `web.Element` that is currently being presented in full-screen in this document, or null if full-screen mode is not currently use. `var element = document.fullscreenElement;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/fullscreenElement`
(get-selection this)
Method.
The getSelection() property of the web.DocumentOrShadowRoot
returns a web.Selection
object representing the range of text
by the user, or the current position of the caret.
var selection = documentOrShadowRootInstance.getSelection()
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/getSelection
Method. The getSelection() property of the `web.DocumentOrShadowRoot` returns a `web.Selection` object representing the range of text by the user, or the current position of the caret. `var selection = documentOrShadowRootInstance.getSelection()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/getSelection`
(ms-elements-from-rect this left top width height ret-val)
Method.
The msElementsFromRect method returns the node list of elements are under a rectangle defined by left, top, width, and height.
object.msElementsFromRect(left, top, width, height, retVal)
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/msElementsFromRect
Method. The msElementsFromRect method returns the node list of elements are under a rectangle defined by left, top, width, and height. `object.msElementsFromRect(left, top, width, height, retVal)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/msElementsFromRect`
(node-from-point this x y)
Method.
The nodeFromPoint() property of the web.DocumentOrShadowRoot
returns the topmost node at the specified coordinates (relative
the viewport).
var node = document.nodeFromPoint(x, y);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/nodeFromPoint
Method. The nodeFromPoint() property of the `web.DocumentOrShadowRoot` returns the topmost node at the specified coordinates (relative the viewport). `var node = document.nodeFromPoint(x, y);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/nodeFromPoint`
(nodes-from-point this x y)
Method.
The nodesFromPoint() property of the web.DocumentOrShadowRoot
returns an array of all nodes at the specified coordinates (relative
the viewport).
var nodes = document.nodesFromPoint(x, y);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/nodesFromPoint
Method. The nodesFromPoint() property of the `web.DocumentOrShadowRoot` returns an array of all nodes at the specified coordinates (relative the viewport). `var nodes = document.nodesFromPoint(x, y);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/nodesFromPoint`
(pointer-lock-element this)
Property.
The pointerLockElement property of the web.Document
and web.ShadowRoot
provides the element set as the target for mouse events while
pointer is locked. It is null if lock is pending, pointer is
or the target is in another document.
var element = document.pointerLockElement;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/pointerLockElement
Property. The pointerLockElement property of the `web.Document` and `web.ShadowRoot` provides the element set as the target for mouse events while pointer is locked. It is null if lock is pending, pointer is or the target is in another document. `var element = document.pointerLockElement;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/pointerLockElement`
(set-active-element! this val)
Property.
The activeElement read-only property of the web.Document
and
interfaces returns the web.Element
within the DOM or shadow
tree that currently has focus.
var element = DocumentOrShadowRoot.activeElement
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement
Property. The activeElement read-only property of the `web.Document` and interfaces returns the `web.Element` within the DOM or shadow tree that currently has focus. `var element = DocumentOrShadowRoot.activeElement` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement`
(set-pointer-lock-element! this val)
Property.
The pointerLockElement property of the web.Document
and web.ShadowRoot
provides the element set as the target for mouse events while
pointer is locked. It is null if lock is pending, pointer is
or the target is in another document.
var element = document.pointerLockElement;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/pointerLockElement
Property. The pointerLockElement property of the `web.Document` and `web.ShadowRoot` provides the element set as the target for mouse events while pointer is locked. It is null if lock is pending, pointer is or the target is in another document. `var element = document.pointerLockElement;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/pointerLockElement`
(set-style-sheets! this val)
Property.
The styleSheets read-only property of the web.DocumentOrShadowRoot
returns a web.StyleSheetList
of css.CSSStyleSheet
objects,
stylesheets explicitly linked into or embedded in a document.
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/styleSheets
Property. The styleSheets read-only property of the `web.DocumentOrShadowRoot` returns a `web.StyleSheetList` of `css.CSSStyleSheet` objects, stylesheets explicitly linked into or embedded in a document. See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/styleSheets`
(style-sheets this)
Property.
The styleSheets read-only property of the web.DocumentOrShadowRoot
returns a web.StyleSheetList
of css.CSSStyleSheet
objects,
stylesheets explicitly linked into or embedded in a document.
See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/styleSheets
Property. The styleSheets read-only property of the `web.DocumentOrShadowRoot` returns a `web.StyleSheetList` of `css.CSSStyleSheet` objects, stylesheets explicitly linked into or embedded in a document. See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/styleSheets`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close