From:
Operating system:
PHP version: Irrelevant
Package: Doc Build problem
Bug Type: Bug
Bug description:div nesting in html docs
Description:
------------
I've been looking at the "alpha" or "beta" epub docs (depending what you
call them). These are failing on my ereader, and after pushing the epub
through a validator, there are a lot element errors. These are present on
the HTML pages as well.
Basically these are all nested elements (div, ul, p) within a P tag (which
you can't do). The code snippet below is from the "What is PHP page".
Around half of the occurances are this simple and the enclosing p tag
removed.
There are a lot of others where there are several instances of incorrect
nesting in a paragraph, which need the closing p tag moving to the correct
location.
Test script:
---------------
<p class="para">
<div class="example" id="example-1">
<div class="info"><p><b>Example #1 An introductory
example</b></p></div>
<div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br
/> "http://www.w3.org/TR/html4/loose.dtd"><br
/><html><br /> <head><br
/> <title>Example</title><br
/> </head><br
/> <body><br /><br
/> <span style="color:
#0000BB"><?php<br
/> </span><span
style="color: #007700">echo </span><span style="color:
#DD0000">"Hi, I'm a PHP script!"</span><span
style="color: #007700">;<br
/> </span><span
style="color: #0000BB">?><br /></span><br
/> </body><br /></html></span>
</code></div>
</div>
</div>
</p>
--
Edit bug report at https://bugs.php.net/bug.php?id=60224&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60224&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60224&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=60224&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60224&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=60224&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60224&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=60224&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=60224&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=60224&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=60224&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=60224&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=60224&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=60224&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60224&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=60224&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60224&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=60224&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=60224&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=60224&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=60224&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=60224&r=mysqlcfg