problem (IE8) inserting 'alternate rss link ' in "head" section fails. ( Succeeds in Firefox 3.5)

problem (IE8) inserting 'alternate rss link ' in "head" section fails. ( Succeeds in Firefox 3.5)

Hi,


Here is our usecase:

* we want to use jquery/javascript to add the "rss link" (i.e. <link rel='alternate' type='application/rss+xml' href='/path/to/thirdsome/rss'> ) to the <head> section of the document

* I added this code to a test page:

  <script type="text/javascript">
     $("<link rel='alternate' type='application/rss+xml' href='/path/to/thirdsome/rss'>").insertAfter("meta");
  </script>


* It works in Firefox (version 3.5)

* It fails in IE8

* when it fails in IE8, it actually  breaks any existing rss links. For example if the page's head section already had these links:

   <link rel=alternate type='application/rss+xml' href='/path/to/some/rss'>
   <link rel=alternate type='application/rss+xml' href='/path/to/other/rss'>

After the javascript executes, IE8 grays out the 'orange' RSS button. (FF3.5, in contrast displays all three links correctly)

Any comments or insights?

This would be drastically simplify adding the rss links.

thanks,


bill