HTML5 supports "data" type attributes, but in general for a modern day site, this would cause most sites to fail validation if they are going for any doctype other than HTML5.
So that would just be adding a barrier to entry for potential users of your library.