Thanks for noting it (and good for you for taking the high road on it -- it's a pet peeve that so many "use strict or die" Perl hackers have a "So what, as long as it works in IE," attitude about XHTML/CSS). I don't know if it was the earlier version of Dojo (I think it was 0.4) or what but the code I inherited was rife with it and there were no alternatives offered in any forum post, code sample, or the very, very few documents I could find.
| [reply] |
Oh, you can so write your stuff with the non-standard attributes and, in fact, that's the recommended way to do it. That said, I find it a lot nicer to use code that I can actually control. I don't trust anyone to parse my XHTML other than the browsers and then, I only trust so far. I certainly don't trust someone walking the DOM. I don't even trust my own DOM-walking code. Hence, why everything gets created by hand.
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
| [reply] |