[wp-trac] Re: [WordPress Trac] #3377: Atom feed contradicts itself

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 8 19:37:13 GMT 2006


#3377: Atom feed contradicts itself
--------------------------------------------+-------------------------------
 Reporter:  link92                          |        Owner:  shorty114
     Type:  defect                          |       Status:  closed   
 Priority:  low                             |    Milestone:           
Component:  General                         |      Version:  2.0.5    
 Severity:  normal                          |   Resolution:  wontfix  
 Keywords:  bg|dev-feedback bg|2nd-opinion  |  
--------------------------------------------+-------------------------------
Comment (by link92):

 {{{
 <summary type="text/plain" mode="escaped"><![CDATA[This &amp;amp;
 this]]></summary>
 }}}
 Will come out of almost every parser as meaning a summary with contents of
 "This &amp;amp; this" which is plain text.

 {{{
 <summary type="text/plain" mode="escaped">This &amp;amp; this</summary>
 }}}
 Will come out of almost every parser as meaning a summary with contents of
 "This &amp; this" which is plain text.

 The real issue is that we have text content which is escaped (which under
 the Atom 0.3 spec means nothing more than just follow the normal XML rules
 (eg. remove entities in PCDATA, but not CDATA)), and that it is plain text
 and therefore the data is the raw content after being escaped. The two
 options for this are to:
  1. Remove the CDATA section, so the entities are decoded by the parser,
  2. Change the MIME type to text/html, so it's parsed by an HTML parser.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3377#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list