WordPress.org

Ready to get started?Download WordPress

Forums

Named entities invalidating output in Thunderbird (6 posts)

  1. seththomasrasmussen
    Member
    Posted 9 years ago #

    When viewing RSS feeds in Mozilla Thunderbird, you have the option of loading the actual (X)HTML version of the article/post/whathaveyou or simply the headline and summary. However, what loads fine(sent as XML) does not load fine in Thunderbird.
    It turns out that named entities such as   are not recognized, whereas the numerical equivalent   works wonderfully. The numerical codes should be preferred anyway.
    To get my feed rendering fixed in Thunderbird I had to edit the get_calendar() function and a few other named entities custom to my template.
    I think the ideal solution is for WordPress to simply convert to all numerical entity references.

  2. seththomasrasmussen
    Member
    Posted 9 years ago #

    wtf... i put the entity examples in backticks...
    anyways, i think you get the basic gist:
    -named entities bad
    -numiercal code entities good
    -fix WP code to reflect this

  3. Kafkaesqui

    Posted 9 years ago #

    Last I checked, character entities are considered valid references in XHTML, as well as in RSS, at least version 0.9x. So should this not be something for Thunderbird devs to fix, and not WordPress'?
    (In any case, this could be dealt with through a small plugin to convert entities to NCRs.)

  4. BenDG
    Member
    Posted 9 years ago #

    XML parsers usually do not check the DTD, so named entities are not recognized. When using XML (for example XHTML and RSS) you really should use numerical entities only, or even better, just use the right character in unicode.

    The problem with named entities appears also in Opera when you send XHTML with the right mime-type.

  5. Kafkaesqui

    Posted 9 years ago #

    "XML parsers usually do not check the DTD"

    Since the various flavors of RSS and XHTML are in fact DTDs, I'm not sure how applications which support them would not check their respective DTD(s).

    I don't disagree with what is the preferred method, only that if a program supports the collective XHTML DTDs (minus Strict, which has its own set of demands...), they should support ALL of it, of which named character entities are included.

  6. nimbustier
    Member
    Posted 8 years ago #

    I just posted a patch that fixes this, and a plugin that does the same for those that don't want to wait for it to be integrated.
    (more details/context in my blog)

Topic Closed

This topic has been closed to new replies.

About this Topic