Page MenuHomePhabricator

Do not strip HTML5 custom data attributes
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: enhancement

Details

Reference
bz26247

Related Objects

StatusSubtypeAssignedTask
OpenNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:16 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz26247.
bzimport added a subscriber: Unknown Object (MLST).

Digging into the code, it seems this was already fixed in the unreleased version: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Sanitizer.php?r1=70911&r2=70980

(Same URL, but not mangled by Bugzilla: http://tinyurl.com/23lleuo )

ayg wrote:

You can just say "r70980" and it will be auto-linked.