<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Making a Better Use of Script Tags</title>
	<link>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/</link>
	<description>Utterly random, incoherent and disjointed rants and ramblings...</description>
	<pubDate>Fri, 09 Jan 2009 03:30:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/#comment-10176</link>
		<pubDate>Mon, 15 Sep 2008 13:54:55 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/#comment-10176</guid>
					<description>@&lt;a href="#comment-10175" rel="nofollow"&gt;Adam Kahtava&lt;/a&gt;: True. I see many people skip it altogether.

But, W3c lists it as a &lt;a href="http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1" rel="nofollow"&gt;required attribute&lt;/a&gt; so if you skip it, your code may no longer validate.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-10175" rel="nofollow">Adam Kahtava</a>: True. I see many people skip it altogether.</p>
<p>But, W3c lists it as a <a href="http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1" rel="nofollow">required attribute</a> so if you skip it, your code may no longer validate.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Adam Kahtava</title>
		<link>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/#comment-10175</link>
		<pubDate>Mon, 15 Sep 2008 13:25:05 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/#comment-10175</guid>
					<description>But most browsers choose JavaScript by default. It doesn't really matter what your type attribute contains - unless you're using vbscript.</description>
		<content:encoded><![CDATA[<p>But most browsers choose JavaScript by default. It doesn&#8217;t really matter what your type attribute contains - unless you&#8217;re using vbscript.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/#comment-10173</link>
		<pubDate>Mon, 15 Sep 2008 13:12:17 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/#comment-10173</guid>
					<description>[quote post="2641"]Ever wonder why we even need a type attribute in the script tag?[/quote]

Well, it's there to specify the MIME type of the script you are importing/embedding. Naturally as it goes with stuff like that, there is an intense flame war about whether you should use text/javascript or application/javascript.  :P

Oh, and you can use the script tag to embed client side vbscript in which case you'd use text/vbscript although I haven't really seen that being done much these days.</description>
		<content:encoded><![CDATA[<blockquote cite="http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/"><p>
Ever wonder why we even need a type attribute in the script tag?</p>
</blockquote>
<p>Well, it&#8217;s there to specify the MIME type of the script you are importing/embedding. Naturally as it goes with stuff like that, there is an intense flame war about whether you should use text/javascript or application/javascript.  <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_razz.gif" alt="P" class="wp-smiley" /> </p>
<p>Oh, and you can use the script tag to embed client side vbscript in which case you&#8217;d use text/vbscript although I haven&#8217;t really seen that being done much these days.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Adam Kahtava</title>
		<link>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/#comment-10172</link>
		<pubDate>Mon, 15 Sep 2008 11:40:18 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/09/10/making-a-better-use-of-script-tags/#comment-10172</guid>
					<description>John is the man! jQuery is efff'n awesome!

Ever wonder why we even need a type attribute in the script tag?</description>
		<content:encoded><![CDATA[<p>John is the man! jQuery is efff&#8217;n awesome!</p>
<p>Ever wonder why we even need a type attribute in the script tag?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.373 seconds -->
