Wild, random P tags appear in nested list with BR tag inside LI tag
-
Hello. Help, please.
I have got some wild (random) </p> tags in my source code when there is no opening <p>.
Let us make a simple nested list:
<ol> <li>Lorem ipsum</li> <li>Dolor sit amet: <ul><li>Consectetur adipiscing elit</li></ul></li> <li>Etc.</li> </ol>
This works fine. The problem appears when we use a break line in our list:
<ol> <li>Lorem ipsum</li> <li>Dolor sit amet<br /> Consectetur adipiscing elit<br /> Fusce tempus ut libero vel semper: *** here appears a random </p> *** <ul> <li>Nam sed neque luctus</li> <li>Malesuada quam eu</li> </ul> </li> <li>Etc.</li> </ol>
Examlpe: onauke.com/story/451 (there are 5 opening <p> tags and 8 closing </p> tags).
I believe you can copy and paste the last list in empty wordpress page or post and you will see the problem (just delete the part “*** here appears a random </p> ***” when you paste the code to wordpress editor).
Settings > Writing > “WordPress should correct invalidly nested XHTML automatically” is unchecked. I checked the plugins, and I think that this is a wordpress issue.
Thanks.
- The topic ‘Wild, random P tags appear in nested list with BR tag inside LI tag’ is closed to new replies.