<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Why doesn&#8217;t &lt;script /&gt; work?</title>
	<atom:link href="http://ajaxian.com/archives/why-doesnt-script-work/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/why-doesnt-script-work</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Scott Schiller</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-103195</link>
		<dc:creator>Scott Schiller</dc:creator>
		<pubDate>Sat, 23 Sep 2006 22:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-103195</guid>
		<description>Logically thinking, it&#039;s expected for IMG to be a closed element as it never has any nested elements or text inside of it.

Following this logic, SCRIPT could be either/or given that you can have it as an &quot;empty&quot; (and therefore closed) element by using SRC= ..but if the code is inserted inline, then obviously a separate closing tag is needed. Looks like SCRIPT should always have a separate closing tag, based on what the article says.</description>
		<content:encoded><![CDATA[<p>Logically thinking, it&#8217;s expected for IMG to be a closed element as it never has any nested elements or text inside of it.</p>
<p>Following this logic, SCRIPT could be either/or given that you can have it as an &#8220;empty&#8221; (and therefore closed) element by using SRC= ..but if the code is inserted inline, then obviously a separate closing tag is needed. Looks like SCRIPT should always have a separate closing tag, based on what the article says.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Luz</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-102881</link>
		<dc:creator>Daniel Luz</dc:creator>
		<pubDate>Sat, 23 Sep 2006 14:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-102881</guid>
		<description>Completely agreed with Martin Bialasinski. The sole reason for it to happen is because people are &lt;em&gt;not&lt;/em&gt; serving XHTML documents, thus making the browsers still parse them as HTML (have you ever tried validating your websites as what they really are, HTML?). The slash inside an HTML tag has a different meaning (inherited from SGML), but most browsers ignore it (or else they would break with all fake-XHTML websites).

Since IMG tags have no content, there&#039;s no difference for you if the &quot;/&quot; is being interpreted or not.</description>
		<content:encoded><![CDATA[<p>Completely agreed with Martin Bialasinski. The sole reason for it to happen is because people are <em>not</em> serving XHTML documents, thus making the browsers still parse them as HTML (have you ever tried validating your websites as what they really are, HTML?). The slash inside an HTML tag has a different meaning (inherited from SGML), but most browsers ignore it (or else they would break with all fake-XHTML websites).</p>
<p>Since IMG tags have no content, there&#8217;s no difference for you if the &#8220;/&#8221; is being interpreted or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vance Dubberly</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-102211</link>
		<dc:creator>Vance Dubberly</dc:creator>
		<pubDate>Fri, 22 Sep 2006 23:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-102211</guid>
		<description>Hmm guess I should stop cursing my </description>
		<content:encoded><![CDATA[<p>Hmm guess I should stop cursing my </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Bialasinski</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-102171</link>
		<dc:creator>Martin Bialasinski</dc:creator>
		<pubDate>Fri, 22 Sep 2006 22:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-102171</guid>
		<description>Dion, you missed the point of the article, I am afraid.

The fact that &lt;img /&gt; works and &lt;script /&gt; does not work has nothing to do with the error handling behaviour of the HTML parser.

The HTML DTD clearly states:
&lt;!ELEMENT IMG - O EMPTY                -- Embedded image --&gt;
&lt;!ELEMENT SCRIPT - - %Script;          -- script statements --&gt;
&lt;!ENTITY % Script &quot;CDATA&quot; -- script expression --&gt;

See the EMPTY at the IMG definition?

The paragraphs from the blog article only explain, why you can use  &lt;img /&gt; in documents served as content-type text/html. Why the whole &quot;XHTML doctype, but served as text/html&quot;-mess works at all.</description>
		<content:encoded><![CDATA[<p>Dion, you missed the point of the article, I am afraid.</p>
<p>The fact that &lt;img /&gt; works and &lt;script /&gt; does not work has nothing to do with the error handling behaviour of the HTML parser.</p>
<p>The HTML DTD clearly states:<br />
&lt;!ELEMENT IMG &#8211; O EMPTY                &#8212; Embedded image &#8211;&gt;<br />
&lt;!ELEMENT SCRIPT &#8211; - %Script;          &#8212; script statements &#8211;&gt;<br />
&lt;!ENTITY % Script &#8220;CDATA&#8221; &#8212; script expression &#8211;&gt;</p>
<p>See the EMPTY at the IMG definition?</p>
<p>The paragraphs from the blog article only explain, why you can use  &lt;img /&gt; in documents served as content-type text/html. Why the whole &#8220;XHTML doctype, but served as text/html&#8221;-mess works at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Jia</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-102170</link>
		<dc:creator>Simon Jia</dc:creator>
		<pubDate>Fri, 22 Sep 2006 22:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-102170</guid>
		<description>I remember there was a blog post early that shows an IE error where if you have a simple , IE will duplicate the text in front of it.</description>
		<content:encoded><![CDATA[<p>I remember there was a blog post early that shows an IE error where if you have a simple , IE will duplicate the text in front of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-102160</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Fri, 22 Sep 2006 21:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-102160</guid>
		<description>I don&#039;t agree with the articles serving up HTML *at all*. To me, the article is simply saying &quot;Our software &#039;Webkit&#039; can&#039;t handle XHTML as well as we&#039;d like, so for the time being, can you publish as HTML? It&#039;ll work better!&quot;

XHTML has at the very least added formal structure to web development! Now I know why I don&#039;t use Safari!</description>
		<content:encoded><![CDATA[<p>I don&#8217;t agree with the articles serving up HTML *at all*. To me, the article is simply saying &#8220;Our software &#8216;Webkit&#8217; can&#8217;t handle XHTML as well as we&#8217;d like, so for the time being, can you publish as HTML? It&#8217;ll work better!&#8221;</p>
<p>XHTML has at the very least added formal structure to web development! Now I know why I don&#8217;t use Safari!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-102085</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Fri, 22 Sep 2006 21:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-102085</guid>
		<description>Cool, very informative... @dc - I think safari is bult on webkit.</description>
		<content:encoded><![CDATA[<p>Cool, very informative&#8230; @dc &#8211; I think safari is bult on webkit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dc</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-102052</link>
		<dc:creator>dc</dc:creator>
		<pubDate>Fri, 22 Sep 2006 20:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-102052</guid>
		<description>is webkit.org the same as the Safari folks?</description>
		<content:encoded><![CDATA[<p>is webkit.org the same as the Safari folks?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Hedges</title>
		<link>http://ajaxian.com/archives/why-doesnt-script-work/comment-page-1#comment-102017</link>
		<dc:creator>Andrew Hedges</dc:creator>
		<pubDate>Fri, 22 Sep 2006 19:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/why-doesnt-script-work#comment-102017</guid>
		<description>After reading the Surfin&#039; Safari article and others on the topic, our company is considering &quot;reverting&quot; from XHTML 1.0 to HTML 4.01. Are others doing the same? The only real reason we could come up with for staying with XHTML was marketing, you know, so we appear to be up on the latest and greatest. I&#039;d be interested to hear technical arguments for staying with XHTML.</description>
		<content:encoded><![CDATA[<p>After reading the Surfin&#8217; Safari article and others on the topic, our company is considering &#8220;reverting&#8221; from XHTML 1.0 to HTML 4.01. Are others doing the same? The only real reason we could come up with for staying with XHTML was marketing, you know, so we appear to be up on the latest and greatest. I&#8217;d be interested to hear technical arguments for staying with XHTML.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

