News for hackers. Stuff that matters.
Re:In search of the perfect JavaScript framework by juliangregorian on Saturday February 07, 2015 @10:29PM (#9016319)
It's not really abuse in an HTML5 paradigm, attributes are meant to be extensible and semantic.
Re:In search of the perfect JavaScript framework by oneeyedpigeon on Sunday February 08, 2015 @04:37AM (#9016857)
Why not actually use the mechanism that html5 allows for (i.e. data-* attributes) rather than making up your own, that it doesn't?
Re:In search of the perfect JavaScript framework by juliangregorian on Sunday February 08, 2015 @05:26AM (#9016909)
Just guessing: (1) it's not actually "data" and this provides more meaningful cues, (2) it provides a bit of namespacing so as to not step on the end developer's own data-attributes, (3) turns out that it doesn't actually break anywhere after all, as proven by many JS frameworks at this point. I tried briefly to track some standards down for you, but I know this gets discussed at length on the Angular mailing lists if you really care for the nitty gritty.