Last modified: 2010-05-15 15:33:12 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 T4870, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2870 - PATCH: Fix invalid XHTML ouput generated by includes/EditPage.php
PATCH: Fix invalid XHTML ouput generated by includes/EditPage.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.4.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://rbach.priv.at/Patches/mediawik...
: patch, patch-need-review
Depends on:
Blocks: html
  Show dependency treegraph
 
Reported: 2005-07-15 18:51 UTC by Robert Bachmann
Modified: 2010-05-15 15:33 UTC (History)
1 user (show)

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


Attachments

Description Robert Bachmann 2005-07-15 18:51:12 UTC
PROBLEM

Invalid markup is created when previewing a page, e.g:
<p><center><font color="#cc0000"><strong>Note:</strong> Remember that this is only a 
preview, and has not yet been saved!</font></center></p>

The XHTML specification does not allow <center> to occur inside of <p>.

SOLUTION

Replace <p><center><font color="#cc0000"> with 
<p style="text-align: center; color:#cc0000;">.

APPLY THE PATCH

cd mediawiki-1.4.x/
wget http://rbach.priv.at/Patches/mediawiki-20050715.diff
patch -p0 < mediawiki-20050715.diff
Comment 1 JeLuF 2005-07-16 21:24:08 UTC
This is already fixed in MediaWiki 1.5. The layout of that paragraph has been
moved to CSS.

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


Navigation
Links