[HOME PAGE] [STORES] [CLASSICISTRANIERI.COM] [FOTO] [YOUTUBE CHANNEL]


Bug 3202 – HTML attributes not preserved on <pre> tags

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.


Contents Listing Alphabetical by Author:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Unknown Other

Contents Listing Alphabetical by Title:
# A B C D E F G H I J K L M N O P Q R S T U V W Y Z Other

Medical Encyclopedia

Browse by first letter of topic:


A-Ag Ah-Ap Aq-Az B-Bk Bl-Bz C-Cg Ch-Co
Cp-Cz D-Di Dj-Dz E-Ep Eq-Ez F G
H-Hf Hg-Hz I-In Io-Iz J K L-Ln
Lo-Lz M-Mf Mg-Mz N O P-Pl Pm-Pz
Q R S-Sh Si-Sp Sq-Sz T-Tn To-Tz
U V W X Y Z 0-9

Biblioteca - SPANISH

Biblioteca Solidaria - SPANISH

Bugzilla

Ebooks Gratuits

Encyclopaedia Britannica 1911 - PDF

Project Gutenberg: DVD-ROM 2007

Project Gutenberg ENGLISH Selection

Project Gutenberg SPANISH Selection

Standard E-books

Wikipedia Articles Indexes

Wikipedia for Schools - ENGLISH

Wikipedia for Schools - FRENCH

Wikipedia for Schools - SPANISH

Wikipedia for Schools - PORTUGUESE

Wikipedia 2016 - FRENCH

Wikipedia HTML - CATALAN

Wikipedia Picture of the Year 2006

Wikipedia Picture of the Year 2007

Wikipedia Picture of the Year 2008

Wikipedia Picture of the Year 2009

Wikipedia Picture of the Year 2010

Wikipedia Picture of the Year 2011