<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Hitting the limits of Object Detection</title>
	<link>http://dave.sunwheeltech.com/wordpress/2005/10/31/hitting-the-limits-of-object-detection/</link>
	<description>Dave Crane's weblog</description>
	<pubDate>Thu, 29 Jul 2010 13:10:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>

	<item>
		<title>by: dave</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/10/31/hitting-the-limits-of-object-detection/#comment-40</link>
		<pubDate>Tue, 29 Nov 2005 14:59:41 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/10/31/hitting-the-limits-of-object-detection/#comment-40</guid>
					<description>Hi John,

Just reading your comment again, doesn't it work cross-browser if you set the attribute directly rather than via setAttribute(), i.e.

var newAC = document.createElement(”INPUT”);
newAC.onblur=somefunc;

HTH

Dave</description>
		<content:encoded><![CDATA[	<p>Hi John,</p>
	<p>Just reading your comment again, doesn&#8217;t it work cross-browser if you set the attribute directly rather than via setAttribute(), i.e.</p>
	<p>var newAC = document.createElement(”INPUT”);<br />
newAC.onblur=somefunc;</p>
	<p>HTH</p>
	<p>Dave
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: dave</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/10/31/hitting-the-limits-of-object-detection/#comment-37</link>
		<pubDate>Mon, 28 Nov 2005 15:52:21 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/10/31/hitting-the-limits-of-object-detection/#comment-37</guid>
					<description>Hi John,

Yes, reality bites sometimes. There are cases where browser detection is the only way to go, particularly where implementation bugs are concerned.

It sounds like you have explored the alternatives, and, in this case, browser detection is the only way to go. How tightly are you detecting the browser type? Does it go by version? You need to consider whether a future version of IE, in which this bug is fixed, will behave. Will it still use the workaround on the assumption that the 'correct' behaviour is broken?

Happy coding, and thanks for dropping by!

Dave</description>
		<content:encoded><![CDATA[	<p>Hi John,</p>
	<p>Yes, reality bites sometimes. There are cases where browser detection is the only way to go, particularly where implementation bugs are concerned.</p>
	<p>It sounds like you have explored the alternatives, and, in this case, browser detection is the only way to go. How tightly are you detecting the browser type? Does it go by version? You need to consider whether a future version of IE, in which this bug is fixed, will behave. Will it still use the workaround on the assumption that the &#8216;correct&#8217; behaviour is broken?</p>
	<p>Happy coding, and thanks for dropping by!</p>
	<p>Dave
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: John Buck</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/10/31/hitting-the-limits-of-object-detection/#comment-36</link>
		<pubDate>Mon, 28 Nov 2005 14:42:00 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/10/31/hitting-the-limits-of-object-detection/#comment-36</guid>
					<description>I have been looking for a way to code

var newAC = document.createElement(&quot;INPUT&quot;);
newAC.setAttribute(&quot;onblur&quot;,&quot;javascript:somefunc(this);&quot;); 
...

which works in Firefox but not IE.   IE  will allow you to set a &quot;onblur&quot; attribute but will set it as a text object and not a function, and hence will never be called.

I have found a way to do it via browser detection but not object detection.

--
JB</description>
		<content:encoded><![CDATA[	<p>I have been looking for a way to code</p>
	<p>var newAC = document.createElement(&#8221;INPUT&#8221;);<br />
newAC.setAttribute(&#8221;onblur&#8221;,&#8221;javascript:somefunc(this);&#8221;);<br />
&#8230;</p>
	<p>which works in Firefox but not IE.   IE  will allow you to set a &#8220;onblur&#8221; attribute but will set it as a text object and not a function, and hence will never be called.</p>
	<p>I have found a way to do it via browser detection but not object detection.</p>
	<p>&#8211;<br />
JB
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
