Last modified: 2010-05-15 15:50:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11144 - Sanitizer blocks templates which contain non-validating HTML fragment.
Sanitizer blocks templates which contain non-validating HTML fragment.
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-09-01 01:56 UTC by Scott A. Colcord
Modified: 2010-05-15 15:50 UTC (History)
1 user (show)

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


Description Scott A. Colcord 2007-09-01 01:56:34 UTC
The sanitizer currently forces all pages to pass HTML validation individually.  This causes it to erroneously escape HTML which, when transcluded, would culminate in a valid page.

For example, if {{ROW}} contains:

And is transcluded as:

The transcluded HTML will be escaped, instead of passed through.

Ideal solution:  Introduce a mechanism by which the sanitizer can be aware of the context in which it is intended to be transcluded, and validate it as though it were in that context.

Easier workaround:  When sanitizing a page in the Template: namespace, only check for well-formedness, rather than validity.
Comment 1 P.Copp 2009-11-26 03:14:06 UTC
This has been FIXED with the introduction of the new preprocessor.

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