Page MenuHomePhabricator

Sanitizer should check for duplicated user interface ids
Closed, ResolvedPublic

Description

Sanitizer should have a (black)list of ids used on user interface (outside bodyContent, + TOC & categories related), so if it finds out same id inside bodyContent, it should trim it out. Or optionally return error/warning so user will be informed there's error in wikitext.

Also another way, how to enforce not using of MediaWiki built-in ids is to rename all of them to certain form, I'd say with some prefix, such as "mw-<current_id_name>" and then Sanitizer simply can trim out (or return error/warning on) every id beginning with this prefix. But this is huge compatibility issue and would need to be solved carefully, preferably with some promotion before - list with old -> new ids, so people could fix their scripts, stylesheets and tools.


Version: unspecified
Severity: enhancement

Details

Reference
bz13926

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:10 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz13926.
bzimport added a subscriber: Unknown Object (MLST).
Danny_B created this task.May 2 2008, 1:26 AM

Assigned: Raimond. To either mark resolved, or to fix and mark resolved after that :)

Crap. Changed wrong bug. Reset to new.

david.sledge wrote:

*** This bug has been marked as a duplicate of bug 7356 ***