XHTML named entities break XHTML document
|Reported by:||nicholaswilson||Owned by:|
The current output of Wordpress 2.9.2 is nearly standard XHTML, but breaks on my MathML pages served with +xml MIME type.
Fixes are trivial; please replace « and » entities in wp-includes/general-template.php with their numeric equivalents. Since the default theme's doctype is XHTML, you should be doing this anyway in the rare case someone has a correctly-configured server.
I am not trying to bring up the HTML/XHTML debate or say that you should not be trying to serve HTML-compatible XHTML; I am just asking these bugs be fixed so that those of us who do appreciate Wordpress' XHTML support can actually use it.
This bug breaks all pages on any Wordpress site served with XML MIME type and has been around for a while, so clearly none of the devs has ever tested any Wordpress output with an XML parser recently. May I suggest that in future this check is added to your testing for new releases to avoid causing 'yellow-screen-of-death' on upgrade for those of us who do need XML for MathML? Thanks.
Patch: trivial (as described). Can commit straight away unless internationalization of the strings causes problems.
Change History (8)
- Milestone Awaiting Review deleted
- Resolution set to maybelater
- Status changed from new to closed