PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Wiki » Bug #1736

XHTML Compliance Problem

Details

Submitted2004-06-29 01:59 UTC
Frommriggy at tampabay dot rr dot com
StatusBogus
PackageText_Wiki
PHP Version4.3.7
OSWindowsXP
Roadmaps(Not assigned)

Comments

[2004-06-29 01:59 UTC] mriggy at tampabay dot rr dot com

Description:
------------
Using the <php> tag results in malformed HTML code.

Reproduce code:
---------------
<php>
some $php code here
</php>

or just use the sample page code posted on the text_wiki page.

Expected result:
----------------
Should be clean XHTML 1.0 compliant output.

Actual result:
--------------
Instead you get improperly nested <p> and <em> tags inside the code blocks.

<p><php><br />
<em> Set up the wiki options<br />
$options = array();<br />

$options['view_url'] = "index.php?page=";</p>

Notice how the em is'nt closed? This causes the rest of the document to become invalidated.

[2004-06-29 18:15 UTC] mriggy at tampabay dot rr dot com

Fixed the problem by using a <code type="php"> instead of <php> which is deprecated.