What do people think of sometimes annotating <div> elements with "data-name" attributes to mention what they for?
-
-
Ah, yeah, I get that. You can go with a specific prefix, `js-thing` or `name-thing` or something, but it’ll still collide a bit
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I use `js-` class prefixes for non-CSS related stuff.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
What about classes for selecting? data-name is fine of course, but most often the others also fine I think.