API reference up.element
module

Low-level functions to access and change the DOM.

up.element.get() and up.element.subtree() look up elements. up.element.createFromHTML() and up.element.createFromSelector() build elements, and up.element.affix() builds one and attaches it to a parent. Functions like up.element.attr(), up.element.numberAttr() and up.element.jsonAttr() parse attribute values into typed values, and up.element.toggle() or up.element.hide() change visibility through the [hidden] attribute.

These functions know nothing about layers or animation. For a fragment-aware API, prefer up.fragment.


Features