[wp-trac] [WordPress Trac] #9513: Take atom:content[@type='xhtml'] seriously

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 11 23:38:51 GMT 2009


#9513: Take atom:content[@type='xhtml'] seriously
-------------------------+--------------------------------------------------
 Reporter:  mcepl        |       Owner:  josephscott
     Type:  enhancement  |      Status:  new        
 Priority:  normal       |   Milestone:  Unassigned 
Component:  AtomPub      |     Version:             
 Severity:  normal       |    Keywords:             
-------------------------+--------------------------------------------------
 One of the intended purposes of Atom standard was to allow better way of
 including XHTML in the feed than with “escaping it” (see this
 [http://www.xml.com/pub/a/2003/08/20/embedded.html article by Norman Walsh
 in xml.com] with followup at [http://norman.walsh.name/2003/06/30/hardline
 1], [http://norman.walsh.name/2003/09/18/unescmarkup 2], and
 [http://norman.walsh.name/2003/09/16/escmarkup 3], there is also
 [http://www.intertwingly.net/blog/1571.html an interesting discussion
 under this blogpost] and
 [http://www.tbray.org/ongoing/When/200x/2003/06/28/Learning Tim Bray’s
 essay on the same theme]) Even though even
 [http://norman.walsh.name/2003/09/16/escmarkup#comment0006 Norm agrees
 that he lost this fight], at least Atom provides ''opportunity'' for
 conscious authors to use namespaced XML properly.

 Now, of course, the problem is that all this beauty is not supported by
 any known-to-me Atompub-accepting blog server. Particularly when this
 perfectly valid Atom 1.0 feed (take a look at
 [http://validator.w3.org/feed/#validate_by_input validator] if you don’t
 believe me):

 {{{
 <?xml version="1.0" encoding="utf-8"?>
 <atom:feed xmlns:atom="http://www.w3.org/2005/Atom"
 xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
   <atom:title>Late Night Thoughts on Listening to Mahler’s Ninth
 Symphony</atom:title>
   <atom:updated>2009-04-08T00:13:32+02:00</atom:updated>
   <atom:link rel="alternate" type="text/html"
 href="http://matejcepltest.wordpress.com/"/>
   <atom:link rel="self" type="application/atom+xml"
 href="http://matejcepltest.wordpress.com/feed/"/>
   <atom:author>
     <atom:name>Matěj Cepl</atom:name>
     <atom:email>ceplm at seznam.cz</atom:email>
   </atom:author>
   <atom:id>http://matejcepltest.wordpress.com/</atom:id>
   <atom:rights>Copyright 2007 Matej Cepl</atom:rights>
   <atom:entry>
     <atom:title>John 3:17 or The Golden Middle Ground Between Grace and
 Sanctification?</atom:title>
     <atom:link rel="alternate" type="text/html" href="$url"/>
     <atom:id>urn:mc:ceplovi.cz:atom1:blog:jan-3_17-2008-07-10</atom:id>
     <atom:updated>2008-07-13T00:00:00+02:00</atom:updated>
     <dc:subject>John 3:17 or The Golden Middle Ground Between Grace and
 Sanctification?</dc:subject>
     <atom:content type="xhtml" xml:lang="en">
       <div xmlns="http://www.w3.org/1999/xhtml">
         <p>There is a couple of things, which make for me sense together
         (and I am not sure, of course, whether they will make sense to you
         as well), and which I would like to record here.</p>
         <p>“<span class="scripture">For God sent not his
         Son into the world to condemn the world; but that the world
         through him might be saved.</span>” (J. 3:17)  In some aspects and
 for some
         people (like me) and in certain moments, this is even more
 important
         than the previous verse, and yet it is quite rarely mentioned in
 the
         Church. Maybe because it so clear, that nobody gets much fame to
 explain
         (and there is not much to explain here?). For all of us, who live
 with
         the idea of God-policeman, following our doings to punish severely
 any
         small misstep, this is the good news.</p>
         <p>There is quite certainly something significantly wrong about
 preaching,
         that we always quote only  (John 3:16)  and
         we don’t continue one verse further. As if we are still more
 interested in what’s
         there in gospel for me, and we don’t understand, that we are not
 the central figures
         in whole Bible. Not that there wouldn’t be anything there for us,
 but … that’s another long
         discussion I would like to have with Dave.</p>
       </div>
     </atom:content>
   </atom:entry>
 </atom:feed>
 }}}

 is sent to Wordpress.com I get
 [http://matejcepltest.wordpress.com/2009/04/08/john-317-or-the-golden-
 middle-ground-between-grace-and-sanctification/ rather disasterous
 result].

 According to
 [http://article.gmane.org/gmane.comp.web.wordpress.devel/27067 Peter
 Westwood] wordpress treats all content delivered by different modes of
 remote publishing as the same dummy plain text.

 OK, so the request of this ticket (and hopefully place of further
 discsussion if necessary) is to fix this and make <atom:content
 type="xhtml"> considererd and delivered so that wordpress would just
 accept the nodetree inside of such element as a body of the blogpost
 without much further changes.

 Also #6128 might be caused by this.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9513>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list