clojure.browser.dom

since v0.0-927

append - function
(append parent & children)

click-element - function
(click-element e)

element - function
(element tag-or-text)
(element tag & children)

ensure-element - function
(ensure-element e)
Coerce the argument to a dom element if possible.

get-element - function
(get-element id)

get-value - function
(get-value e)
Get the value of an element.

html->dom - function
(html->dom s)

insert-at - function
(insert-at parent child index)

log - function
(log & args)

log-obj - function
(log-obj obj)

remove-children - function
(remove-children id)
Remove all children from the element with the passed id.

replace-node - function
(replace-node old-node new-node)
Replace old-node with new-node. old-node can be an element or a
keyword which is the id of the node to replace.  new-node can be an
element or an html string.

set-properties - function
(set-properties e m)
Set properties on an element

set-text - function
(set-text e s)
Set the text content for the passed element returning the
element. If a keyword is passed in the place of e, the element with
that id will be used and returned.

set-value - function
(set-value e v)
Set the value property for an element.

Types and Protocols

DOMBuilder - protocol