The ShadowRoot interface of the Shadow DOM API is the root node a DOM subtree that is rendered separately from a document's main tree.
The ShadowRoot interface of the Shadow DOM API is the root node a DOM subtree that is rendered separately from a document's main tree.
(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`
(delegates-focus this)Property.
The delegatesFocus read-only property of the web.ShadowRoot
returns a boolean that indicates whether delegatesFocus was set
the shadow was attached (see web.Element.attachShadow()).
var df = shadowRoot.delegatesFocus
See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus
Property. The delegatesFocus read-only property of the `web.ShadowRoot` returns a boolean that indicates whether delegatesFocus was set the shadow was attached (see `web.Element.attachShadow()`). `var df = shadowRoot.delegatesFocus` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus`
(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`
(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`
(host this)Property.
The host read-only property of the web.ShadowRoot returns a
to the DOM element the ShadowRoot is attached to.
var element = shadowRoot.host
See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host
Property. The host read-only property of the `web.ShadowRoot` returns a to the DOM element the ShadowRoot is attached to. `var element = shadowRoot.host` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host`
(inner-html this)Property.
The innerHTML property of the web.ShadowRoot interface sets
returns a reference to the DOM tree inside the ShadowRoot.
var domString = shadowRoot.innerHTML shadowRoot.innerHTML = domString
See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML
Property. The innerHTML property of the `web.ShadowRoot` interface sets returns a reference to the DOM tree inside the ShadowRoot. `var domString = shadowRoot.innerHTML shadowRoot.innerHTML = domString` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML`
(mode this)Property.
The mode property of the web.ShadowRoot specifies its mode
either open or closed. This defines whether or not the shadow
internal features are accessible from JavaScript.
var mode = shadowRoot.mode
See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode
Property. The mode property of the `web.ShadowRoot` specifies its mode either open or closed. This defines whether or not the shadow internal features are accessible from JavaScript. `var mode = shadowRoot.mode` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode`
(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-delegates-focus! this val)Property.
The delegatesFocus read-only property of the web.ShadowRoot
returns a boolean that indicates whether delegatesFocus was set
the shadow was attached (see web.Element.attachShadow()).
var df = shadowRoot.delegatesFocus
See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus
Property. The delegatesFocus read-only property of the `web.ShadowRoot` returns a boolean that indicates whether delegatesFocus was set the shadow was attached (see `web.Element.attachShadow()`). `var df = shadowRoot.delegatesFocus` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus`
(set-host! this val)Property.
The host read-only property of the web.ShadowRoot returns a
to the DOM element the ShadowRoot is attached to.
var element = shadowRoot.host
See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host
Property. The host read-only property of the `web.ShadowRoot` returns a to the DOM element the ShadowRoot is attached to. `var element = shadowRoot.host` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host`
(set-inner-html! this val)Property.
The innerHTML property of the web.ShadowRoot interface sets
returns a reference to the DOM tree inside the ShadowRoot.
var domString = shadowRoot.innerHTML shadowRoot.innerHTML = domString
See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML
Property. The innerHTML property of the `web.ShadowRoot` interface sets returns a reference to the DOM tree inside the ShadowRoot. `var domString = shadowRoot.innerHTML shadowRoot.innerHTML = domString` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML`
(set-mode! this val)Property.
The mode property of the web.ShadowRoot specifies its mode
either open or closed. This defines whether or not the shadow
internal features are accessible from JavaScript.
var mode = shadowRoot.mode
See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode
Property. The mode property of the `web.ShadowRoot` specifies its mode either open or closed. This defines whether or not the shadow internal features are accessible from JavaScript. `var mode = shadowRoot.mode` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode`
(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |