<?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: Sometimes, even jQuery can&#8217;t save you from yourself</title>
	<atom:link href="http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Wed, 16 May 2012 23:02:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Bryan Matthews</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39417</link>
		<dc:creator>Bryan Matthews</dc:creator>
		<pubDate>Wed, 21 Jul 2010 17:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39417</guid>
		<description>On a related note, I know that some versions of IE will treat an invalid self-closing tag as if it were a start tag without an end tag, whereas firefox (and others) seems to be inclined to close it for you.  This can be hard to track down at times.</description>
		<content:encoded><![CDATA[<p>On a related note, I know that some versions of IE will treat an invalid self-closing tag as if it were a start tag without an end tag, whereas firefox (and others) seems to be inclined to close it for you.  This can be hard to track down at times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Shiffer</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39356</link>
		<dc:creator>Mark Shiffer</dc:creator>
		<pubDate>Tue, 13 Jul 2010 14:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39356</guid>
		<description>Thanks Dave. I don&#039;t work with web applications too much any longer, but still found this as an interesting read. Your point about validating HTML is well taken, and hopefully I&#039;ll remember it as I get back into web development again in the future.

-Mark</description>
		<content:encoded><![CDATA[<p>Thanks Dave. I don&#8217;t work with web applications too much any longer, but still found this as an interesting read. Your point about validating HTML is well taken, and hopefully I&#8217;ll remember it as I get back into web development again in the future.</p>
<p>-Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Armour</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39341</link>
		<dc:creator>Bob Armour</dc:creator>
		<pubDate>Fri, 09 Jul 2010 21:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39341</guid>
		<description>That&#039;s a good reason TO use firebug&#039;s HTML (DOM) view - compare it with the output from &#039;View Source&#039; and you might spot some of the &#039;help&#039; that the browser is giving you. By saving the output from both views, to separate text files, and using a decent Diff tool (Beyond Compare, for example), any differences shoudl be obvious.

The same theory applies to IE &#039;View Source&#039; and DeveloperTools DOM view.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good reason TO use firebug&#8217;s HTML (DOM) view &#8211; compare it with the output from &#8216;View Source&#8217; and you might spot some of the &#8216;help&#8217; that the browser is giving you. By saving the output from both views, to separate text files, and using a decent Diff tool (Beyond Compare, for example), any differences shoudl be obvious.</p>
<p>The same theory applies to IE &#8216;View Source&#8217; and DeveloperTools DOM view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nelson</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39340</link>
		<dc:creator>nelson</dc:creator>
		<pubDate>Fri, 09 Jul 2010 17:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39340</guid>
		<description>Good thing to point out...

However, you really shouldn&#039;t be using that markup in the first place. A cell without a row just makes no sense, and it&#039;s very much invalid.

I think a bigger lesson to learn here is to always write the most valid markup you can.</description>
		<content:encoded><![CDATA[<p>Good thing to point out&#8230;</p>
<p>However, you really shouldn&#8217;t be using that markup in the first place. A cell without a row just makes no sense, and it&#8217;s very much invalid.</p>
<p>I think a bigger lesson to learn here is to always write the most valid markup you can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39338</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Fri, 09 Jul 2010 14:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39338</guid>
		<description>Be careful using Firebug&#039;s HTML for low-level tracing like this -- it will sometimes correct a &quot;problem&quot; -- the actual view source is required.

I was missing a closing tag and FireBug closed it for me. That missing closing tag was causing all sorts of grief in IE. Took several hours before I checked raw source.

As always, enjoy reading your articles.</description>
		<content:encoded><![CDATA[<p>Be careful using Firebug&#8217;s HTML for low-level tracing like this &#8212; it will sometimes correct a &#8220;problem&#8221; &#8212; the actual view source is required.</p>
<p>I was missing a closing tag and FireBug closed it for me. That missing closing tag was causing all sorts of grief in IE. Took several hours before I checked raw source.</p>
<p>As always, enjoy reading your articles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Armour</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39337</link>
		<dc:creator>Bob Armour</dc:creator>
		<pubDate>Fri, 09 Jul 2010 14:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39337</guid>
		<description>I too have been bitten by IE&#039;s propensity to &#039;help&#039; (And currently by a thousand midegs - but we won&#039;t go into that one!)

The whole history of browser compatibility and &#039;broken&#039; websites has not really been made any easier by the fact that browsers silently (or other wise) correct our mistakes. If they had never sone this in the first plac, then developers everywhere (myself included) would have been forced to produce correct markup, and there would be one less problem to think about.

Having your webpage fail immediately may seem to be a bit draconian, but the failure would be immediate and visible, not delayed and &#039;lurking&#039;.

Oh well, in a perfect world...</description>
		<content:encoded><![CDATA[<p>I too have been bitten by IE&#8217;s propensity to &#8216;help&#8217; (And currently by a thousand midegs &#8211; but we won&#8217;t go into that one!)</p>
<p>The whole history of browser compatibility and &#8216;broken&#8217; websites has not really been made any easier by the fact that browsers silently (or other wise) correct our mistakes. If they had never sone this in the first plac, then developers everywhere (myself included) would have been forced to produce correct markup, and there would be one less problem to think about.</p>
<p>Having your webpage fail immediately may seem to be a bit draconian, but the failure would be immediate and visible, not delayed and &#8216;lurking&#8217;.</p>
<p>Oh well, in a perfect world&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39336</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Fri, 09 Jul 2010 13:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39336</guid>
		<description>never question the jquery!

thanks for this much needed reminder that sometimes the problem is right in front of your face, and almost always, that problem was your fault!</description>
		<content:encoded><![CDATA[<p>never question the jquery!</p>
<p>thanks for this much needed reminder that sometimes the problem is right in front of your face, and almost always, that problem was your fault!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harvey Kandola</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39333</link>
		<dc:creator>Harvey Kandola</dc:creator>
		<pubDate>Fri, 09 Jul 2010 07:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39333</guid>
		<description>We had something similar: an unclosed IMG tag actually killed IE6 stone dead!

Took us ages to find the issue.</description>
		<content:encoded><![CDATA[<p>We had something similar: an unclosed IMG tag actually killed IE6 stone dead!</p>
<p>Took us ages to find the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Morning Brew - Chris Alcock &#187; The Morning Brew #639</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39332</link>
		<dc:creator>The Morning Brew - Chris Alcock &#187; The Morning Brew #639</dc:creator>
		<pubDate>Fri, 09 Jul 2010 07:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39332</guid>
		<description>[...] Sometimes, even jQuery can&#8217;t save you from yourself - Dave Ward tells the tail of a seemingly cross browser issue that jQuery did not protect him from, and how it actually was caused by a mistake in his HTML, highlighting some interesting differences in how different browsers handle incorrect markup. [...]</description>
		<content:encoded><![CDATA[<p>[...] Sometimes, even jQuery can&#8217;t save you from yourself &#8211; Dave Ward tells the tail of a seemingly cross browser issue that jQuery did not protect him from, and how it actually was caused by a mistake in his HTML, highlighting some interesting differences in how different browsers handle incorrect markup. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russ Cam</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39329</link>
		<dc:creator>Russ Cam</dc:creator>
		<pubDate>Thu, 08 Jul 2010 21:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39329</guid>
		<description>Dave, I&#039;ve made exactly the same mistake before, those pesky tables!</description>
		<content:encoded><![CDATA[<p>Dave, I&#8217;ve made exactly the same mistake before, those pesky tables!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thorn</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39328</link>
		<dc:creator>thorn</dc:creator>
		<pubDate>Thu, 08 Jul 2010 19:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39328</guid>
		<description>Yeah, I ran into a similar issue. With tables too. I called .hide() for a detached element just created with $(...html code from a server...) call. It was TR. Then this TR was added to a table and some time after that it had to be shown with .show() call. But it didn&#039;t want to show correctly in Firefox. And this time a problem was with jQuery. Its implementation of hide()/show() saves an initial value of the property &lt;em&gt;display&lt;/em&gt; into element&#039;s data and then uses it to show the element. But this value for a detached TR in Firefox is &#039;block&#039;, not &#039;table-row&#039;. My dumb fix looked like this:
&lt;pre lang=&quot;javascript&quot;&gt;
$newTr.hide();
if ($.browser.mozilla)  $newTr.data(&#039;olddisplay&#039;, &#039;table-row&#039;);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Yeah, I ran into a similar issue. With tables too. I called .hide() for a detached element just created with $(&#8230;html code from a server&#8230;) call. It was TR. Then this TR was added to a table and some time after that it had to be shown with .show() call. But it didn&#8217;t want to show correctly in Firefox. And this time a problem was with jQuery. Its implementation of hide()/show() saves an initial value of the property <em>display</em> into element&#8217;s data and then uses it to show the element. But this value for a detached TR in Firefox is &#8216;block&#8217;, not &#8216;table-row&#8217;. My dumb fix looked like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$newTr.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">mozilla</span><span style="color: #009900;">&#41;</span>  $newTr.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'olddisplay'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'table-row'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Cyril Gupta</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39327</link>
		<dc:creator>Cyril Gupta</dc:creator>
		<pubDate>Thu, 08 Jul 2010 17:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39327</guid>
		<description>Dave,

Lesson learnt.</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>Lesson learnt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39326</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 08 Jul 2010 16:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39326</guid>
		<description>The Firefox Web Developer addon has an option in the tools menu called &quot;Validate Local HTML&quot; that sends your generated HTML to the W3C validator instead of just validating by URI. Just keep in mind that it&#039;s sent to the validator in cleartext and be sure not to validate anything sensitive that way.</description>
		<content:encoded><![CDATA[<p>The Firefox Web Developer addon has an option in the tools menu called &#8220;Validate Local HTML&#8221; that sends your generated HTML to the W3C validator instead of just validating by URI. Just keep in mind that it&#8217;s sent to the validator in cleartext and be sure not to validate anything sensitive that way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pickles</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39325</link>
		<dc:creator>Pickles</dc:creator>
		<pubDate>Thu, 08 Jul 2010 16:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39325</guid>
		<description>Do the W3C validators work on Javascript generated HTML or do you have some other tools for that?</description>
		<content:encoded><![CDATA[<p>Do the W3C validators work on Javascript generated HTML or do you have some other tools for that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Sometimes, even jQuery can’t save you from yourself &#124; Encosia -- Topsy.com</title>
		<link>http://encosia.com/sometimes-even-jquery-cant-save-you-from-yourself/#comment-39324</link>
		<dc:creator>Tweets that mention Sometimes, even jQuery can’t save you from yourself &#124; Encosia -- Topsy.com</dc:creator>
		<pubDate>Thu, 08 Jul 2010 16:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1020#comment-39324</guid>
		<description>[...] This post was mentioned on Twitter by Dave Ward, Chris Love. Chris Love said: Sometimes, even jQuery can’t save you from yourself http://bit.ly/dsiRsR @encosia #webdev #html [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Dave Ward, Chris Love. Chris Love said: Sometimes, even jQuery can’t save you from yourself <a href="http://bit.ly/dsiRsR" rel="nofollow">http://bit.ly/dsiRsR</a> @encosia #webdev #html [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

