Skip to Content | Skip to Navigation


dojo.toDom

TODOC!

API Info

full API:http://dojotoolkit.org/api/dojo/toDom
summary:instantiates an HTML fragment returning the corresponding DOM.

Parameters

Signature

dojo.toDom( /* String */ frag,  /* DocumentNode */ doc)

Overview

  • frag String

    the HTML fragment

  • doc DocumentNode

    optional document to use when creating DOM nodes, defaults to dojo.doc if not specified.

Examples

Create a table row:

var tr = dojo.toDom("<tr><td>First!</td></tr>");

API Info

full API:http://dojotoolkit.org/api/dojo/_toDom
summary:Existing alias for dojo.toDom. Deprecated, will be removed in 2.0.

Parameters

Signature

dojo._toDom( /*  */ frag,  /*  */ doc)

Overview

  • frag ``

  • doc ``