Question

I've started using the HTML5 data- attributes in my application, but when this is applied to an element that is a dijit widget, it disappears.

<button dojoType="dijit.form.Button" data-id="5">Number 5</button>

Is dojo actually parsing this and keeping it somewhere? Or is it just removed completely because dojo isn't HTML5 compliant?

Was it helpful?

Solution

By applying the answer to this question, I was also able to keep the custom data- attributes on the surrounding element.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top