CDATA won't help you. If you really want to write code in accordance with the XHTML DTD / schema, you can do this, but you cannot take advantage of the flexibility of the Dojo markup language (DojoML). What you can do is that you define your own way of labeling widgets, for example <div class="dojoButton"/> , and then you create them on the page load using something like:
dojo.query('div[class=dojoButton]').instantiate( dijit.form.Button, {} );
Before you do this, check out this paragraph Dojo Does Not Check (in the middle of the article), and this is Dojo Degradability .
Maine
source share