Closed GoogleCodeExporter closed 9 years ago
I had the same bug with another website, and I found the solution on a forum
http://forum.joomla.fr/showthread.php?p=388090 . Just add "<!--[if
IE]></base><![endif]-->" after the <base> tag (the bug is relative to the
support of
this tag with IE6)
Original comment by gregoire...@smile.fr
on 6 Mar 2009 at 8:57
Please read our FAQ Q4: http://code.google.com/p/swfobject/wiki/faq
Original comment by bobbyvandersluis
on 6 Mar 2009 at 10:25
Thank you all. I apologize for not doing a proper search at this site prior to
posting the bug. I realized today I had search only in open issues, not all
issues
where this problem had been previously discussed, solved and closed.
The issue is now resolved at my site by adding </base> to close the <base>
element
rather than correctly self closing the element.
Rather than using the conditional comment as suggested above, I opted for a
server
side PHP script to recognize the user agent and write the incorrect <base> code
only
for IE6. This also avoids a minor problem with the conditional comment
solution. Just
adding "<!--[if IE6]></base><![endif]-->" will cause IE6 to render the <base>
element
as such: <base href="someURL" /></base> rather than <base
href="someURL"></base>,
with the prior still self closing and then closing again with </base>.
To determine IE6 via PHP user agent is used:
$isIE6 = (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')>0) ? true : false ;
$baseHTML = ($isIE6) ? '<base href="'.$baseURL.'"></base>' : '<base
href="'.$baseURL
.'" />';
Again, thank you for the quick answer!
Cheers,
TJ
Original comment by sflar...@gmail.com
on 6 Mar 2009 at 2:43
Original issue reported on code.google.com by
sflar...@gmail.com
on 5 Mar 2009 at 10:04Attachments: