why use that over ids, or comments?
What do people think of sometimes annotating <div> elements with "data-name" attributes to mention what they for?
-
-
-
ids can only be used once per page; comments can't be used to select elements
- 4 more replies
New conversation -
-
-
I've started using a custom name for all my tags. It makes inspecting so easy.
-
How do you set the custom name? Is that done through custom elements?
- 2 more replies
New conversation -
-
-
it can weigh down markup, especially if you are adding ARIA labels as well.
-
that's legit - do you use ARIA? I've seen it but it felt umm... quite heavy so never quite dove into it
- 3 more replies
New conversation -
-
-
hah, I'll take that as a stamp of approval then :D
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I like this!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
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.