Last modified: 2012-04-16 09:15:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28247, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26247 - Do not strip HTML5 custom data attributes
Do not strip HTML5 custom data attributes
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: html5
  Show dependency treegraph
 
Reported: 2010-12-05 05:29 UTC by Jesse (Pathoschild)
Modified: 2012-04-16 09:15 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jesse (Pathoschild) 2010-12-05 05:29:15 UTC
MediaWiki should not strip HTML5 custom data attributes (data-xxx="..."). These are the standard method for passing data to clientside scripts in HTML5, and are fully backwards-compatible. This has many applications, such as table sorting and metadata handling.

HTML5 spec section: http://dev.w3.org/html5/spec/Overview.html#embedding-custom-non-visible-data-with-the-data-attributes
Comment 1 Jesse (Pathoschild) 2010-12-05 06:00:00 UTC
Digging into the code, it seems this was already fixed in the unreleased version: r1=70911&r2=70980">http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Sanitizer.php?r1=70911&r2=70980
Comment 2 Jesse (Pathoschild) 2010-12-05 06:01:20 UTC
(Same URL, but not mangled by Bugzilla: http://tinyurl.com/23lleuo )
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2010-12-05 18:36:32 UTC
You can just say "r70980" and it will be auto-linked.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links