Last modified: 2010-05-15 15:38:00 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 T6264, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4264 - CSS class is stripped from PRE elements
CSS class is stripped from PRE elements
Status: RESOLVED DUPLICATE of bug 3935
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.5.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-13 07:00 UTC by mediawiki
Modified: 2010-05-15 15:38 UTC (History)
0 users

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


Attachments

Description mediawiki 2005-12-13 07:00:17 UTC
Styling is stripped from "<PRE>" elements when rendered.  

I've tried to create a special CSS style to use to show code or commands entered
on a screen.  In MediaWiki:Monobook.css, I've added the selector '.sn-screen {
font: normal 100% "Courier New", monospace; background: #DDD; padding: 8pt }'. 
In my pages, I use '<pre class="sn-screen"> stuff </pre>'.  What actually gets
output to the browser is '<pre> stuff </pre>'--the class, and hence the
associated formatting, is stripped out.  

Other elements don't have this problem.  For example '<p class="sn-screen">' is
output as expected.  

As a workaround, I defined the default formatting for <pre> to be what I want
for screen output ... but then ALL <pre> formatted elements come up the same,
which really isn't what I want.
Comment 1 Brion Vibber 2005-12-15 19:34:36 UTC

*** This bug has been marked as a duplicate of 3935 ***

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


Navigation
Links