| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2021-07-13 14:05 UTC] cmb@php.net
 
-Status: Open
+Status: Analyzed
  [2021-07-13 14:05 UTC] cmb@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 14:00:01 2025 UTC | 
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>