#12 ✓invalid
Jason Garber

XHTML filter needed

Reported by Jason Garber | July 10th, 2008 @ 03:10 PM | in 4.0

We need to separate out HTML and XHTML. Since this is a major release, best to make this major change now.

Comments and changes to this ticket

  • Jason Garber

    Jason Garber July 14th, 2008 @ 08:16 AM

    • State changed from “new” to “invalid”

    After implementing this on Friday, I thought it over some more and decided not to do this. While it's true that, <br /> is not valid HTML (or rather, in the strictest sense it's a BR tag followed by a greater-than symbol) and it will produce warnings in the W3C validator, after surveying the pop HTML literature I've come to a few conclusions:

    1. While it's true that "HTML-compatible XHTML 1.0 documents" are a myth, tag soup parsers are able to read them so it's practical to use them
    2. People have come to expect XHTML out of Textile2 and RedCloth
    3. Changing the #to_html method to output HTML and implementing #to_xhtml will confuse and upset more people than would be enlightened

    Thus, I'm abandoning this feature, though maybe working the validation stuff in to make sure output is valid as both HTML and XHTML.

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

People watching this ticket

Referenced by