Allow HTML5 custom data attributes
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 12 Aug 2010 19:19:13 +0000 (19:19 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 12 Aug 2010 19:19:13 +0000 (19:19 +0000)
commit4ad22c9e3f9c8e11061d5f75d6aca1187c54f41a
tree2a9b1901c8d47b2e5be6150a7eebf464243dd2a8
parent69747f93ba49795654b4b52828256e6cde29519e
Allow HTML5 custom data attributes

HTML5 allows any attribute beginning with "data-" to be used for
site-specific purposes:

http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#embedding-custom-non-visible-data

I don't see any reason not to allow this.  It means users won't have to
hackily overload title="" or class="" if they want to store per-element
data for scripts.
RELEASE-NOTES
includes/Sanitizer.php
maintenance/parserTests.txt