I want to add some Dojo widgets to my XHTML pages, but Dojo uses some attributes that aren't part of the XHTML spec. For example:
<input dojoType="ComboBox" type="text" dataUrl="/some_data.json" />
The dojoType
and dataUrl
attributes cause validation problems. I believe Dojo lets me move dojoType
into the class
attribute:
<input class="dojo-ComboBox" type="text" dataUrl="/some_data.json" />
That solves part, but not all of the problem. The "correct" solution would look something like this:
<input dojo:type="ComboBox" type="text" dojo:dataUrl="/some_data.json" />
But that requires a Dojo XMLNS declaration at the top of my HTML file, which means I need to find a copy of the Dojo XMLNS DTD. I suspect I'll need to copy it to my server and host it there because I've extended the Dojo toolkit. Will Dojo even pick up on the scoped version?