Liking cljdoc? Tell your friends :D

tikkba.utils.dom

Utilities functions for DOM manipulation.

Utilities functions for DOM manipulation.
raw docstring

add-attrsclj

(add-attrs elt & attrs)

Adds the attributes to the element elt.

Adds the attributes to the element elt.
sourceraw docstring

add-event-listenerclj

(add-event-listener elt type f & args)

Adds an EventListener to the EventTarget. When the event fires, f will be invoked with the event as its first argument followed by args. The event is not consumed by the listener. Returns the listener.

Adds an EventListener to the EventTarget.
When the event fires, f will be invoked with the
event as its first argument followed by args. The
event is not consumed by the listener.
Returns the listener.
sourceraw docstring

add-map-attrsclj

(add-map-attrs elt attrs)

Adds the attributes represented by a map to the element elt

Adds the attributes represented by a map to the element elt
sourceraw docstring

append-childclj

(append-child node child)

See org.w3c.dom.Node.appendChild

See org.w3c.dom.Node.appendChild
sourceraw docstring

append-childrenclj

(append-children node children)

Add the children to node.

Add the children to node.
sourceraw docstring

attrclj

(attr elt att)

Returns the attribute value.

Returns the attribute value.
sourceraw docstring

attributeclj

(attribute elt name)

See org.w3c.dom.Element.getAttribute.

See org.w3c.dom.Element.getAttribute.
sourceraw docstring

child-nodesclj

(child-nodes node)

See org.w3c.dom.Node.getChildNodes

See org.w3c.dom.Node.getChildNodes
sourceraw docstring

child-nodes-seqclj

(child-nodes-seq node)

Returns the child nodes of node as a sequence.

Returns the child nodes of node as a sequence.
sourceraw docstring

create-documentclj

(create-document domimpl ns name doctype)

See org.w3c.dom.DOMImplementation.createDocument

See org.w3c.dom.DOMImplementation.createDocument
sourceraw docstring

create-element-nsclj

(create-element-ns doc ns name)

See org.w3c.dom.Document.createElementNS.

See org.w3c.dom.Document.createElementNS.
sourceraw docstring

document-elementclj

(document-element doc)

See org.w3c.dom.Document.getDocumentElement

See org.w3c.dom.Document.getDocumentElement
sourceraw docstring

element-by-idclj

(element-by-id doc id)

See org.w3c.dom.Document.getElementById

See org.w3c.dom.Document.getElementById
sourceraw docstring

element-idclj

(element-id doc id)

Returns the element with the given id

Returns the element with the given id
sourceraw docstring

elementsclj

(elements doc ns tag)

Converts the XML vector representations into XML elements.

Converts the XML vector representations into XML elements.
sourceraw docstring

elements-helperclj

(elements-helper doc ns tag)
(elements-helper doc ns root-elt queued-tags queued-elts)
source

eltclj

(elt doc ns tag)
source

insert-beforeclj

(insert-before node new-child ref-child)

See org.w3c.dom.Node.insertBefore

See org.w3c.dom.Node.insertBefore
sourceraw docstring

next-siblingclj

(next-sibling node)

See org.w3c.dom.Node.getNextSibling

See org.w3c.dom.Node.getNextSibling
sourceraw docstring

remove-childclj

(remove-child node child)

See org.w3c.dom.Node.appendChild

See org.w3c.dom.Node.appendChild
sourceraw docstring

set-attributeclj

(set-attribute elt name value)

See org.w3c.dom.Element.setAttribute.

See org.w3c.dom.Element.setAttribute.
sourceraw docstring

set-attribute-nsclj

(set-attribute-ns elt ns name value)

See org.w3c.dom.Element.setAttributeNS.

See org.w3c.dom.Element.setAttributeNS.
sourceraw docstring

set-text-contentclj

(set-text-content node text-content)

See org.w3c.dom.Node.setTextContent.

See org.w3c.dom.Node.setTextContent.
sourceraw docstring

spit-strclj

(spit-str doc & options)

Returns the content of doc as a UTF-8 XML string.

Options are as the same as spit-xml.

Returns the content of doc as a UTF-8 XML string.

Options are as the same as spit-xml.
sourceraw docstring

spit-xmlclj

(spit-xml f doc & options)

Open f with writer and writes the XML content into it, then closes f.

Options is a suite of key/value and is used for the output properties of the XML transformation. Valid options are :indent, :encoding etc. See javax.xml.transform.OutputKeys

Open f with writer and writes the XML content
into it, then closes f.

Options is a suite of key/value and is used for 
the output properties of the XML transformation.
Valid options are :indent, :encoding etc. 
See javax.xml.transform.OutputKeys
sourceraw docstring

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

× close