Is there any problem with using HTML5’s “data-*” attributes for older browsers?

There isn’t really, they’re not 100% correct/valid usage in HTML4 of course….but they don’t cause problems either, so they’re still a great way to solve the “I need an attribute for this” problem.

If it helps, I’ve used these while supporting IE6 and have had zero issues thus far, and I can’t recall a single SO question reporting any either.

Leave a Comment