dojo/dom

Project owner:Eugene Lazutkin
since:V1.7

This module defines the core Dojo DOM API. The standard return variable for this module is dom.

Features

AMD Features

  • dom.byId

    Returns DOM node with matching id attribute or null if not found. If id is a DomNode, this function is a no-op.

  • dom.isDescendant

    Returns true if node is a descendant of ancestor

  • dom.setSelectable

    Enable or disable selection on a node

Legacy features are set in dojo/_base/html.

Examples

require(["dojo/dom"], function(dom){
  var myNode = dom.byId("myNode");
});

See also

API Reference: dojo.dom

Error in the documentation? Can’t find what you are looking for? Let us know!