Last modified: 2010-05-15 15:37:25 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 T5202, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3202 - HTML attributes not preserved on <pre> tags
HTML attributes not preserved on <pre> tags
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.5.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Brion Vibber
:
: 3935 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-19 15:52 UTC by Daniel Oliver
Modified: 2010-05-15 15:37 UTC (History)
3 users (show)

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


Attachments

Description Daniel Oliver 2005-08-19 15:52:33 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.
Comment 1 Brion Vibber 2005-08-19 18:23:57 UTC
<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.
Comment 2 Brion Vibber 2006-06-03 23:31:08 UTC
Will handle this along with updated parser code...
Comment 3 Brion Vibber 2006-06-04 00:41:06 UTC
*** Bug 3935 has been marked as a duplicate of this bug. ***
Comment 4 Brion Vibber 2006-06-06 22:57:58 UTC
Parser test added in r14623.
Fix in r14624.
Comment 5 Borgx 2006-07-14 02:51:30 UTC
Can you also applied this to MediaWiki 1.6 please.

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


Navigation
Links