Thursday, October 25, 2007

Blogger editor - annoyances with adding images

pencil icon, that"s clickable to start editing the post

A minor annoyance to me that the blogger editor adds images with invalid XHTML. I'm using 'Editor HTML' mode, and every image I add gives me three things to correct:

  • the attribute border is added with the value 0. It has been deprecated in strict (X)HTML
  • the attributes alt and id are for some reason concatenated
  • the XHTML fragment is added to the top of the posting, not where I was when I pressed the 'add image' button

It looks like this:

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"
   <img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer;cursor:hand;"

I have survived until now and will keep doing that, it's just that it irritates my DRY instinct.