[wp-trac] [WordPress Trac] #3496: Two CDATA sections needed to work
with 'application/xhtml+xml' mime-type
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 24 01:26:44 GMT 2006
#3496: Two CDATA sections needed to work with 'application/xhtml+xml' mime-type
----------------------------+-----------------------------------------------
Reporter: JeremyVisser | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.1
Component: Administration | Version: 2.1
Severity: blocker | Keywords:
----------------------------+-----------------------------------------------
In {{{wp-includes/general-template.php}}}, there are two JavaScript
sections related to the TinyMCE editor, where if {{{Content-type:
application/xhtml+xml}}} is specified in the HTML headers, the Write Post
page will fail to load.
This is because Firefox will parse a page served with
{{{application/xhtml+xml}}} with an XML parser, as opposed to an SGML
parser.
The XML parser apparently doesn't like the two ampersands ({{{&&}}}) in
the JavaScript code, and bombs out. Adding CDATA tags around the code
fixes the problem.
Attached is a ready-made patch.
Ticket priority is 'low', because not many people use the
{{{application/xhtml+xml}}} for WordPress, but severity is 'blocker',
because the Write Post page breaks.
--
Ticket URL: <http://trac.wordpress.org/ticket/3496>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list