Liking cljdoc? Tell your friends :D

web.ParentNode

The ParentNode mixin contains methods and properties that are to all types of web.Node objects that can have children.

The ParentNode mixin contains methods and properties that are
to all types of `web.Node` objects that can have children.
raw docstring

appendcljs

(append this & args)

Method.

The ParentNode.append() method inserts a set of web.Node objects web.dom.DOMString objects after the last child of the ParentNode. objects are inserted as equivalent web.Text nodes.

[Throws, Unscopable] void ParentNode.append((Node or DOMString)... nodes);

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/append

Method.

The ParentNode.append() method inserts a set of `web.Node` objects
`web.dom.DOMString` objects after the last child of the ParentNode.
objects are inserted as equivalent `web.Text` nodes.

`[Throws, Unscopable]
void ParentNode.append((Node or DOMString)... nodes);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/append`
sourceraw docstring

child-element-countcljs

(child-element-count this)

Property.

The ParentNode.childElementCount read-only property returns an long representing the number of child elements of the given element.

`var count = node.childElementCount;

count The return value, which is an unsigned long (simply an integer) type. node An object representing a web.Document, web.web-components.DocumentFragment, or web.Element.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/childElementCount

Property.

The ParentNode.childElementCount read-only property returns an
long representing the number of child elements of the given element.

`var count = node.childElementCount;


count
The return value, which is an unsigned long (simply an integer) type.
node
An object representing a `web.Document`, `web.web-components.DocumentFragment`, or `web.Element`.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/childElementCount`
sourceraw docstring

childrencljs

(children this)

Property.

The web.ParentNode property children is a read-only property returns a live web.dom.HTMLCollection which contains all of child elements of the node upon which it was called.

var children = node.children;

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children

Property.

The `web.ParentNode` property children is a read-only property
returns a live `web.dom.HTMLCollection` which contains all of
child `elements` of the node upon which it was called.

`var children = node.children;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children`
sourceraw docstring

first-element-childcljs

(first-element-child this)

Property.

The ParentNode.firstElementChild read-only property returns the first child web.Element, or null if there are no child elements.

var element = node.firstElementChild;

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/firstElementChild

Property.

The ParentNode.firstElementChild read-only property returns the
first child `web.Element`, or null if there are no child elements.

`var element = node.firstElementChild;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/firstElementChild`
sourceraw docstring

last-element-childcljs

(last-element-child this)

Property.

The ParentNode.lastElementChild read-only property returns the last child web.Element or null if there are no child elements.

var element = node.lastElementChild;

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/lastElementChild

Property.

The ParentNode.lastElementChild read-only property returns the
last child `web.Element` or null if there are no child elements.

`var element = node.lastElementChild;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/lastElementChild`
sourceraw docstring

prependcljs

(prepend this & args)

Method.

The ParentNode.prepend() method inserts a set of web.Node objects web.dom.DOMString objects before the first child of the web.ParentNode. objects are inserted as equivalent web.Text nodes.

ParentNode.prepend(...nodesToPrepend);

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/prepend

Method.

The ParentNode.prepend() method inserts a set of `web.Node` objects
`web.dom.DOMString` objects before the first child of the `web.ParentNode`.
objects are inserted as equivalent `web.Text` nodes.

`ParentNode.prepend(...nodesToPrepend);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/prepend`
sourceraw docstring

query-selectorcljs

(query-selector this selectors)

Method.

The web.ParentNode mixin defines the querySelector() method returning an web.Element representing the first element matching specified group of selectors which are descendants of the object which the method was called.

element = parentNode.querySelector(selectors);

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/querySelector

Method.

The `web.ParentNode` mixin defines the querySelector() method
returning an `web.Element` representing the first element matching
specified group of selectors which are descendants of the object
which the method was called.

`element = parentNode.querySelector(selectors);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/querySelector`
sourceraw docstring

query-selector-allcljs

(query-selector-all this selectors)

Method.

The web.ParentNode mixin defines the querySelectorAll() method returning a web.NodeList representing a list of elements matching specified group of selectors which are descendants of the object which the method was called.

elementList = parentNode.querySelectorAll(selectors);

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/querySelectorAll

Method.

The `web.ParentNode` mixin defines the querySelectorAll() method
returning a `web.NodeList` representing a list of elements matching
specified group of selectors which are descendants of the object
which the method was called.

`elementList = parentNode.querySelectorAll(selectors);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/querySelectorAll`
sourceraw docstring

set-child-element-count!cljs

(set-child-element-count! this val)

Property.

The ParentNode.childElementCount read-only property returns an long representing the number of child elements of the given element.

`var count = node.childElementCount;

count The return value, which is an unsigned long (simply an integer) type. node An object representing a web.Document, web.web-components.DocumentFragment, or web.Element.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/childElementCount

Property.

The ParentNode.childElementCount read-only property returns an
long representing the number of child elements of the given element.

`var count = node.childElementCount;


count
The return value, which is an unsigned long (simply an integer) type.
node
An object representing a `web.Document`, `web.web-components.DocumentFragment`, or `web.Element`.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/childElementCount`
sourceraw docstring

set-children!cljs

(set-children! this val)

Property.

The web.ParentNode property children is a read-only property returns a live web.dom.HTMLCollection which contains all of child elements of the node upon which it was called.

var children = node.children;

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children

Property.

The `web.ParentNode` property children is a read-only property
returns a live `web.dom.HTMLCollection` which contains all of
child `elements` of the node upon which it was called.

`var children = node.children;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children`
sourceraw docstring

set-first-element-child!cljs

(set-first-element-child! this val)

Property.

The ParentNode.firstElementChild read-only property returns the first child web.Element, or null if there are no child elements.

var element = node.firstElementChild;

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/firstElementChild

Property.

The ParentNode.firstElementChild read-only property returns the
first child `web.Element`, or null if there are no child elements.

`var element = node.firstElementChild;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/firstElementChild`
sourceraw docstring

set-last-element-child!cljs

(set-last-element-child! this val)

Property.

The ParentNode.lastElementChild read-only property returns the last child web.Element or null if there are no child elements.

var element = node.lastElementChild;

See also: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/lastElementChild

Property.

The ParentNode.lastElementChild read-only property returns the
last child `web.Element` or null if there are no child elements.

`var element = node.lastElementChild;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/lastElementChild`
sourceraw docstring

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

× close