Alias for the current document. 'doc' can be modified for temporary context shifting. See also withDoc().
Use this rather than referring to 'window.document' to ensure your code runs correctly in managed contexts.
n.appendChild(dojo.doc.createElement('div'));