I am using class attribute to save data. I know using data attribute is the standard these days but I wanted to know if there would be any problem storing them in class attribute. I want to use class because older browsers don't support data attribute. I am saving URLs in them and then pulling those using javascript. Eg,
<div class="mdiv http://google.com"></div>
and getting it like:
document.getElementsByClassName('mdiv')[0].getAttribute('class').split(" ")[1]