Last modified: 2010-05-15 15:37:25 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 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