Utilities functions for DOM manipulation.
Utilities functions for DOM manipulation.
(add-attrs elt & attrs)
Adds the attributes to the element elt.
Adds the attributes to the element elt.
(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.
(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
(append-child node child)
See org.w3c.dom.Node.appendChild
See org.w3c.dom.Node.appendChild
(append-children node children)
Add the children to node.
Add the children to node.
(attribute elt name)
See org.w3c.dom.Element.getAttribute.
See org.w3c.dom.Element.getAttribute.
(child-nodes node)
See org.w3c.dom.Node.getChildNodes
See org.w3c.dom.Node.getChildNodes
(child-nodes-seq node)
Returns the child nodes of node as a sequence.
Returns the child nodes of node as a sequence.
(create-document domimpl ns name doctype)
See org.w3c.dom.DOMImplementation.createDocument
See org.w3c.dom.DOMImplementation.createDocument
(create-element-ns doc ns name)
See org.w3c.dom.Document.createElementNS.
See org.w3c.dom.Document.createElementNS.
(document-element doc)
See org.w3c.dom.Document.getDocumentElement
See org.w3c.dom.Document.getDocumentElement
(element-by-id doc id)
See org.w3c.dom.Document.getElementById
See org.w3c.dom.Document.getElementById
(element-id doc id)
Returns the element with the given id
Returns the element with the given id
(elements doc ns tag)
Converts the XML vector representations into XML elements.
Converts the XML vector representations into XML elements.
(elements-helper doc ns tag)
(elements-helper doc ns root-elt queued-tags queued-elts)
(insert-before node new-child ref-child)
See org.w3c.dom.Node.insertBefore
See org.w3c.dom.Node.insertBefore
(next-sibling node)
See org.w3c.dom.Node.getNextSibling
See org.w3c.dom.Node.getNextSibling
(remove-child node child)
See org.w3c.dom.Node.appendChild
See org.w3c.dom.Node.appendChild
(set-attribute elt name value)
See org.w3c.dom.Element.setAttribute.
See org.w3c.dom.Element.setAttribute.
(set-attribute-ns elt ns name value)
See org.w3c.dom.Element.setAttributeNS.
See org.w3c.dom.Element.setAttributeNS.
(set-text-content node text-content)
See org.w3c.dom.Node.setTextContent.
See org.w3c.dom.Node.setTextContent.
(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.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close