dive into mark

You are here: dive into markArchivesAugust 2004Content sniffing considered harmful

Friday, August 13, 2004

Content sniffing considered harmful

$ lynx -head -dump http://hixie.ch/advocacy/xhtml | grep Content-Type
Content-Type: text/plain; charset=utf-8

[Safari rendering Hixie's XHTML advocacy page]

According to comments by Jens Alfke, the next version of Safari will extend this behavior to sniff for feeds as well:

Also, there is a bit of code way down in WebCore that sniffs the incoming page and, when it detects the start of an XML document that contains RSS or Atom, it auto-corrects the MIME type to application/xml+rss or application/xml+atom.

Words fail me.

Filed under , , ,

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



Recent Stuff For You, Special Price Stay Here
  • Greasemonkey Hacks
Good Stuff Buy The Cow Go Away
Dive Into Python
Powered by Google Drink The Milk Don't Steal

 

posts / comments
© 2001-8 Mark Pilgrim