Page MenuHomePhabricator

PATCH: Fix invalid XHTML ouput generated by includes/EditPage.php
Closed, ResolvedPublic

Description

Author: rbach

Description:
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


Version: 1.4.x
Severity: normal
URL: http://rbach.priv.at/Patches/mediawiki-20050715.diff

Details

Reference
bz2870

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:43 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz2870.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Jul 15 2005, 6:51 PM

jeluf wrote:

This is already fixed in MediaWiki 1.5. The layout of that paragraph has been
moved to CSS.