6 messages in com.googlegroups.bloggerdev[bloggerDev] Re: '</ifame>' disappear...
FromSent OnAttachments
Ken Chen01 Jun 2008 03:22 
Jeff Scudder02 Jun 2008 14:38 
Ken Chen04 Jun 2008 00:48 
Ryan Cullen04 Jun 2008 08:39 
Jeff Scudder04 Jun 2008 08:58 
Ken Chen04 Jun 2008 23:18 
Subject:[bloggerDev] Re: '</ifame>' disappear when publishing a blog post.
From:Ryan Cullen (ryan@gmail.com)
Date:06/04/2008 08:39:52 AM
List:com.googlegroups.bloggerdev

My quick look seems to show that the <iframe ...></iframe> is converted to <iframe .../> (although in the &lt; &gt; format). The later is correct XHTML as there is no content inbetween the tags.

Ryan

On 6/4/08, Ken Chen <Ken7@gmail.com> wrote:

Thanks.

The following 2 sections, first is what I send to Google Blogger API, the 2nd section is the server's response.

Only '</iframe>' disappear is server's response.

======================== 8< ===========================

POST /feeds/3092354783568168411/posts/default HTTP/1.1 Content-type: application/atom+xml Authorization: AuthSub token="CNvr9-i5BBCE3ZkV" Content-length: 381 UserAgent: PHP Host: www.blogger.com Connection: Close

<?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom"><title>test iframe</ title><content type="xhtml"><div> <p><iframe width='510' height='300' frameborder='0' scrolling='no' src='http://friend.top1069.com/ showmap.html?

center=25.0268562172,121.470122337&amp;markers=25.0268562172,121.470122337,purple&amp;zoom=15'></ iframe></p> </div></content></entry>

======================== 8< ===========================

<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http:// www.blogger.com/styles/atom.css" type="text/css"?><entry xmlns='http:// www.w3.org/2005/Atom'><id>tag:blogger.com ,1999:blog-3092354783568168411.post-1069992423858092977</id><published>2008-06-04T15:42:00.001+08:00</published><updated>2008-06-04T15:42:38.985+08:00</updated><title type='text'>test iframe</title><content type='html'>&lt;div&gt; &lt;p&gt;&lt;iframe src='http://friend.top1069.com/showmap.html?

center=25.0268562172,121.470122337&amp;amp;markers=25.0268562172,121.470122337,purple&amp;amp;zoom=15' scrolling='no' frameborder='0' height='300' width='510'/&gt;&lt;/p&gt; &lt;/div&gt;</content><link rel='alternate' type='text/html' href='http://kenchenblog.blogspot.com/2008/06/test-iframe_8711.html' title='test iframe'/><link rel='replies' type='text/html' href='http://

www.blogger.com/comment.g?blogID=3092354783568168411&amp;postID=1069992423858092977 ' title='0 個意見'/><link rel='replies' type='application/atom+xml' href='http://kenchenblog.blogspot.com/feeds/1069992423858092977/ comments/default' title='張貼意見'/><link rel='self' type='application/atom +xml' href='http://www.blogger.com/feeds/3092354783568168411/posts/ default/1069992423858092977'/><link rel='edit' type='application/atom +xml' href='http://www.blogger.com/feeds/3092354783568168411/posts/ default/1069992423858092977'/><author><name>Ken Chen</ name><email>nore@blogger.com</email></author></entry>

On Jun 3, 5:39 am, Jeff Scudder <j.@google.com> wrote:

Hi Ken,

I've tried to reproduce this, but I'm seeing slightly different behavior. Could I see the server's response to your POST request?

Thank you,

Jeff

On Jun 1, 3:22 am, Ken Chen <Ken7@gmail.com> wrote:

Hi.

I am trying to creating post through Blogger Data API. I find, the '</ iframe>' will disappear after posting to the Blogger.

Please check this URL:

http://kenchenblog.blogspot.com/2008/06/test-iframe.html

Because the '</iframe>' disappeared, the page is broken. But in original post, the '</iframe>' is exists.

What I send to logger Data API is:

POST /feeds/3092354783568168411/posts/default HTTP/1.1 Content-type: application/atom+xml Authorization: AuthSub token="CNvr9-i5BBCepqr-_f____8B" Content-length: 380 UserAgent: PHP Host:www.blogger.com Connection: Close

<?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom"> <title>test iframe</title> <content type="xhtml"> <div> <p> <iframe width='510' height='300' frameborder='0' scrolling='no' src='xxxxx'> </iframe> </p> </div> </content> </entry>

In Blogger, it is: <div> <p><iframe src='http://friend.top1069.com/showmap.html?

center=25.0450923983,121.557712555&amp;markers=25.0450923983,121.557712555,purple&amp;zoom=7'

scrolling='no' frameborder='0' height='300' width='510'/></p> </div>

The '</iframe>' disappears! I also try to use '<object>' to replace '<iframe>'. Firefox works fine, but IE6 seems not to understand '<object type="text/html"",

Thanks a lot, and please forgive my poor English.