Last modified: 2010-05-15 15:37:25 UTC
In Sanitizer.php, <pre> tags are allowed to have $common+'width' attributes. However, in Parse.php <pre> tags appear to be stripped unconditionally of all attributes. I would like to be able to specify the class of a <pre> tags, so for now I have commented out the appropriate lines in Parse.php. Could the status of <pre> tags be clarified? Thanks, Dan.
<pre> in wikitext is not actually an HTML element, but a wikitext extension; for instance links are not formatted inside <pre> sections. The handler would need to check its attribute parameters separately from the main Sanitizer code and re-add them in its output. Changing subject line.
Will handle this along with updated parser code...
*** Bug 3935 has been marked as a duplicate of this bug. ***
Parser test added in r14623. Fix in r14624.
Can you also applied this to MediaWiki 1.6 please.