Home » Text » Text_Wiki » Bug #1736
XHTML Compliance Problem
Details
| Submitted | 2004-06-29 01:59 UTC |
|---|---|
| From | mriggy at tampabay dot rr dot com |
| Status | Bogus |
| Package | Text_Wiki |
| PHP Version | 4.3.7 |
| OS | WindowsXP |
| 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.