#212 new
RyanTM

Invalid <p> tags inserted in nested html elements.

Reported by RyanTM | March 15th, 2011 @ 08:30 PM

RedCloth adds invalid p tags in the middle of nested html. The invalid p tags get inserted in the three versions I tried (redcloth.org, 4.2.3 and the latest code)

Here are some of the simplest inputs I got to exhibit this bug:

<div><div><div></div></div></div> => <div><div><div></div><p></div></div></p>
<div><ul><li></li></ul></div> => <div><ul><li></li><p></ul></div></p>

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

Tags

Pages