Bug #60224 [Opn->Ana]: div nesting in html docs

From: Date: Tue, 13 Jul 2021 14:05:24 +0000
Subject: Bug #60224 [Opn->Ana]: div nesting in html docs
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18950@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60224&edit=1

 ID:                 60224
 Updated by:         cmb@php.net
 Reported by:        indy at spikehead dot co dot uk
 Summary:            div nesting in html docs
-Status:             Open
+Status:             Analyzed
 Type:               Bug
 Package:            Doc Build problem
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

PhD renders <para> as <p> instead of the appropriate <div> (or
maybe <section>).  This cannot be easily changed, because the docs
use <para> all the time, albeit <simpara> would be more
appropriate.


Previous Comments:
------------------------------------------------------------------------
[2011-11-05 13:50:14] indy at spikehead dot co dot uk

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 this bug report at https://bugs.php.net/bug.php?id=60224&edit=1


Thread (1 message)

  • cmb@php.net
  • Unknown Message
    • cmb@php.net
« previous php.doc.bugs (#18950) next »