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`
(delegates-focus this)
Property.
The delegatesFocus read-only property of the web.shadow-dom.ShadowRoot
returns a boolean that indicates whether delegatesFocus was set
the shadow was attached (see 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.shadow-dom.ShadowRoot` returns a boolean that indicates whether delegatesFocus was set the shadow was attached (see `Element.attachShadow()`). `var df = shadowRoot.delegatesFocus` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus`
(get-selection this)
Method.
The getSelection() property of the web.shadow-dom.DocumentOrShadowRoot
returns a web.other.Selection
object representing the range
text selected 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.shadow-dom.DocumentOrShadowRoot` returns a `web.other.Selection` object representing the range text selected 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.shadow-dom.ShadowRoot
a reference 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.shadow-dom.ShadowRoot` a reference 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.shadow-dom.ShadowRoot
interface
or 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.shadow-dom.ShadowRoot` interface or 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.shadow-dom.ShadowRoot
specifies
mode — either open or closed. This defines whether or not the
root's 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.shadow-dom.ShadowRoot` specifies mode — either open or closed. This defines whether or not the root's 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.shadow-dom.ShadowRoot
returns a boolean that indicates whether delegatesFocus was set
the shadow was attached (see 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.shadow-dom.ShadowRoot` returns a boolean that indicates whether delegatesFocus was set the shadow was attached (see `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.shadow-dom.ShadowRoot
a reference 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.shadow-dom.ShadowRoot` a reference 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.shadow-dom.ShadowRoot
interface
or 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.shadow-dom.ShadowRoot` interface or 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.shadow-dom.ShadowRoot
specifies
mode — either open or closed. This defines whether or not the
root's 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.shadow-dom.ShadowRoot` specifies mode — either open or closed. This defines whether or not the root's internal features are accessible from JavaScript. `var mode = shadowRoot.mode` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close