The role attribute in HTML5 is reserved for ARIA roles (http://www.w3.org/html/wg/drafts/html/master/dom.html#wai-aria), has a limited set of values and changes the accessibility tree of a document. It might be better to use custom data attributes (data-*)
Achievements
9
Karma
0
Total ProTip Views
Charity
Fork and commit to someone's open source project in need
The role attribute in HTML5 is reserved for ARIA roles (http://www.w3.org/html/wg/drafts/html/master/dom.html#wai-aria), has a limited set of values and changes the accessibility tree of a document. It might be better to use custom data attributes (data-*)