Liking cljdoc? Tell your friends :D

web.ShadowRoot

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.
raw docstring

active-elementcljs

(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`
sourceraw docstring

caret-position-from-pointcljs

(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`
sourceraw docstring

delegates-focuscljs

(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`
sourceraw docstring

element-from-pointcljs

(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`
sourceraw docstring

elements-from-pointcljs

(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`
sourceraw docstring

get-selectioncljs

(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`
sourceraw docstring

hostcljs

(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`
sourceraw docstring

inner-htmlcljs

(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`
sourceraw docstring

modecljs

(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`
sourceraw docstring

set-active-element!cljs

(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`
sourceraw docstring

set-delegates-focus!cljs

(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`
sourceraw docstring

set-host!cljs

(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`
sourceraw docstring

set-inner-html!cljs

(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`
sourceraw docstring

set-mode!cljs

(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`
sourceraw docstring

set-style-sheets!cljs

(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`
sourceraw docstring

style-sheetscljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close