Reply to Re: Script tag bug in Internet Explaorer!

Your name:

Reply:


Posted by Steve Pugh on 05/31/06 08:03

"SlimBiker" <amitrai2000@gmail.com> wrote:

>I found a strange IE bug today. I am using IE 6 on Win XP SP1. IF you
>change your script tage from:
>
><script type="text/javascript" src="./js/global.js"></script>
>
>to
>
><script type="text/javascript" src="./js/global.js" />
>
>And if all the script tags have the above syntax then IE stops
>rendering the page. First I thought there was a bug in my html, but
>soon I realised that when I do the same on other downloaded pages also
>the behaviour is replicated.
>On mozilla, FF , Nscape this causes No Problem.
>
>I am using XHTML 1.0 transitional and page validates to W3C.
>Any idea why this could be???

IE doesn't do XHTML.

So to get anything at all in IE you must be serving your documents as
text/html which means that browsers in general will treat them as X
flavoured HTML rather than as real XHTML.

The infamous Appendix C of XHTML 1.0 recommends that the form <foo />
only be used for elements that are empty in HTML (e.g. <br>, <hr>,
<meta>, etc.). For all other elements you should continue using
<foo></foo>.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация