Skip to content
10/09/2008 / dimarzionist

Script tag and Internet Explorer XHTML compatibility

If you are including scripts in your ASP.NET pages, don’t forget that you CANNOT put script tag like this

<script type=”text/javascript” src=”somescript.js” />

because browser will not recognise this as correct markup and probably all your stuff after this tag will not be correctly put to the DOM model.

You need to use this instead:

<script type=”text/javascript” src=”somescript.js”></script>

Is someone told me that they’re fully XHTML compatible? 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: