Last modified: 2010-05-15 15:50:55 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 T13144, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11144 - Sanitizer blocks templates which contain non-validating HTML fragment.
Sanitizer blocks templates which contain non-validating HTML fragment.
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.10.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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:
<tr><td>Stuff</td></tr>

And is transcluded as:
<table>{{ROW}}</table>

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.


Navigation
Links