|
|
|
|
|
by hughw
5309 days ago
|
|
data-blah is HTML 5 legal and dojo is changing its patterns to use it. dojoAttachPoint is an attribute dojo uses in widget templates. I don't really know what you would propose to replace it (except data-attachPoint, say). If you're going to design a tempting system you need a binding mechanism, and that's what dojo does. You can't complain too much about abusing the liberty HTML has always allowed with unrecognized attributes. Dojo cleverly leveraged the capability. And frameworks like dojo are the very reason we even have data-blah now. Unless you are designing widget templates, you can do everything in dojo programmatically, if you choose, and keep your HTML pure. But, why? |
|
Separate looks and from behaviour. The HTML is created already from another templating system server-side, its a pure hell to introduce HTML from Javascript and mix it.