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">
&lt;!DOCTYPE&nbsp;HTML&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;HTML&nbsp;4.01&nbsp;Transitional//EN"<br
/>&nbsp;&nbsp;&nbsp;&nbsp;"http://www.w3.org/TR/html4/loose.dtd"&gt;<br
/>&lt;html&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;head&gt;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;Example&lt;/title&gt;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/head&gt;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;body&gt;<br /><br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:
#0000BB">&lt;?php<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #007700">echo&nbsp;</span><span style="color:
#DD0000">"Hi,&nbsp;I'm&nbsp;a&nbsp;PHP&nbsp;script!"</span><span
style="color: #007700">;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
style="color: #0000BB">?&gt;<br /></span><br
/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/body&gt;<br />&lt;/html&gt;</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

Reply via email to