I like the data-* tags concept.
Should i use it in non HTML 5 documents?
For example:
<li data-id="1001">Item A</li>
For indicating the inner application is (rather than the DOM id)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only difference is that your document won’t validate as HTML 4.01 (or whatever non-HTML5 version you’d be using). Nothing would actually break; browsers won’t care.
Here’s a relevant quote by Paul Irish (source):