<?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: Uniform Event Model: Making IE think W3C</title>
	<atom:link href="http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 18 Mar 2010 20:48:30 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tavs Dokkedahl</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253184</link>
		<dc:creator>Tavs Dokkedahl</dc:creator>
		<pubDate>Thu, 26 Jul 2007 19:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253184</guid>
		<description>@ Steve Brewer. I found a way to support innerHTML - it might contain beta errors but the approach seems good. Try it out if you like.

@ Kevin Hoang Le. You can only have two event handlers of the same type with the same function registered for any one element - hence it can execute twice at maximum. The loopNum variable is only in the code for testing purposes. It tells how many times to test the loop. It is not an integral part of UEM and thus does not count in the result for the code perfomance.</description>
		<content:encoded><![CDATA[<p>@ Steve Brewer. I found a way to support innerHTML &#8211; it might contain beta errors but the approach seems good. Try it out if you like.</p>
<p>@ Kevin Hoang Le. You can only have two event handlers of the same type with the same function registered for any one element &#8211; hence it can execute twice at maximum. The loopNum variable is only in the code for testing purposes. It tells how many times to test the loop. It is not an integral part of UEM and thus does not count in the result for the code perfomance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan Baumeister</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253079</link>
		<dc:creator>Stephan Baumeister</dc:creator>
		<pubDate>Wed, 25 Jul 2007 10:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253079</guid>
		<description>@ibolmo
&quot;100 * O(n)&quot; is not a correct statement, as you can&#039;t multiply a number with a collection of functions (thats what the big O notation represents).
In computer sience &quot;100*n = O(n)&quot; is quite right. It has the same meaning as f(n)=100*n is element of O(n).
See: http://en.wikipedia.org/wiki/Big_O_notation</description>
		<content:encoded><![CDATA[<p>@ibolmo<br />
&#8220;100 * O(n)&#8221; is not a correct statement, as you can&#8217;t multiply a number with a collection of functions (thats what the big O notation represents).<br />
In computer sience &#8220;100*n = O(n)&#8221; is quite right. It has the same meaning as f(n)=100*n is element of O(n).<br />
See: <a href="http://en.wikipedia.org/wiki/Big_O_notation" rel="nofollow">http://en.wikipedia.org/wiki/Big_O_notation</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Hoang Le</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253061</link>
		<dc:creator>Kevin Hoang Le</dc:creator>
		<pubDate>Tue, 24 Jul 2007 19:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253061</guid>
		<description>Tavs, I don&#039;t understand why you said the inner loop executes only twice at a maximum (in your response to Jason).  But IF that&#039;s the case, then since the outer loop is 100 times always, the growth rate would then be independent of the size of the inputs.  The the big-oh should be O(1).  (Constant factor is dropped in big-oh notation).</description>
		<content:encoded><![CDATA[<p>Tavs, I don&#8217;t understand why you said the inner loop executes only twice at a maximum (in your response to Jason).  But IF that&#8217;s the case, then since the outer loop is 100 times always, the growth rate would then be independent of the size of the inputs.  The the big-oh should be O(1).  (Constant factor is dropped in big-oh notation).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tavs Dokkedahl</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253053</link>
		<dc:creator>Tavs Dokkedahl</dc:creator>
		<pubDate>Tue, 24 Jul 2007 16:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253053</guid>
		<description>Thanks for the comments.

@ Steve Brewer. I am working on replacing the existing innerHTML method. Note however that this method is not in the W3C recommendations. But since it is wildly supported and used (and misused) it would be a good idea to support it.

@ Jason. The perfomance tests are not scientifically correct. They are my best shoot at an upper bound on the worst case scenario. You&#039;re right that 2 for loops would produce O(n^2) but the inner loop is executed only twise at a maximum. Therefore I feel it is closer to the real world to regard the inner loop as a constant - hence the O(n) result.

@ Braden Anderson. If you look at the code you will see that there is no resemblence with UEM and the original code of Scott Andrew. UEM does not use the native addEvent nor removeEvent() methods. It currently uses the fireEvent method to enulate dispatchEvent although it is not strictly nessesary. The addEvent() method you are refering to is a nice solution but falls short in many places.</description>
		<content:encoded><![CDATA[<p>Thanks for the comments.</p>
<p>@ Steve Brewer. I am working on replacing the existing innerHTML method. Note however that this method is not in the W3C recommendations. But since it is wildly supported and used (and misused) it would be a good idea to support it.</p>
<p>@ Jason. The perfomance tests are not scientifically correct. They are my best shoot at an upper bound on the worst case scenario. You&#8217;re right that 2 for loops would produce O(n^2) but the inner loop is executed only twise at a maximum. Therefore I feel it is closer to the real world to regard the inner loop as a constant &#8211; hence the O(n) result.</p>
<p>@ Braden Anderson. If you look at the code you will see that there is no resemblence with UEM and the original code of Scott Andrew. UEM does not use the native addEvent nor removeEvent() methods. It currently uses the fireEvent method to enulate dispatchEvent although it is not strictly nessesary. The addEvent() method you are refering to is a nice solution but falls short in many places.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Braden Anderson</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253049</link>
		<dc:creator>Braden Anderson</dc:creator>
		<pubDate>Tue, 24 Jul 2007 15:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253049</guid>
		<description>I haven&#039;t looked at the code, but I suspect it has the same problems with &lt;code&gt;this&lt;/code&gt; mentioned in &lt;a href=&quot;http://www.quirksmode.org/blog/archives/2005/08/addevent_consid.html&quot; rel=&quot;nofollow&quot;&gt;PPK&#039;s  &lt;i&gt;addEvent() considered harmful&lt;/i&gt;&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t looked at the code, but I suspect it has the same problems with <code>this</code> mentioned in <a href="http://www.quirksmode.org/blog/archives/2005/08/addevent_consid.html" rel="nofollow">PPK&#8217;s  <i>addEvent() considered harmful</i></a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ibolmo</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253044</link>
		<dc:creator>ibolmo</dc:creator>
		<pubDate>Tue, 24 Jul 2007 14:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253044</guid>
		<description>Yes 100 * n != O(n) but, 100 * O(n) :P.</description>
		<content:encoded><![CDATA[<p>Yes 100 * n != O(n) but, 100 * O(n) :P.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan Baumeister</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253035</link>
		<dc:creator>Stephan Baumeister</dc:creator>
		<pubDate>Tue, 24 Jul 2007 13:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253035</guid>
		<description>The outer loop runs a constant number (100) of times: 100*n = O(n) !</description>
		<content:encoded><![CDATA[<p>The outer loop runs a constant number (100) of times: 100*n = O(n) !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253034</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 24 Jul 2007 13:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253034</guid>
		<description>Maybe I&#039;m rusty on my algorithm time complexity theory, but on the perf page in the creator&#039;s documentation he lists two algorithms that include nested loops as O(n). That sounds more like O(n^2) or at best maybe O(n log n) to me. Feel free to correct me if I&#039;m wrong, computational theorists.</description>
		<content:encoded><![CDATA[<p>Maybe I&#8217;m rusty on my algorithm time complexity theory, but on the perf page in the creator&#8217;s documentation he lists two algorithms that include nested loops as O(n). That sounds more like O(n^2) or at best maybe O(n log n) to me. Feel free to correct me if I&#8217;m wrong, computational theorists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabian Jakobs</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253032</link>
		<dc:creator>Fabian Jakobs</dc:creator>
		<pubDate>Tue, 24 Jul 2007 13:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253032</guid>
		<description>Sometimes it seems that the time is right for some ideas. We are currently working on moving qooxdoo&#039;s DOM event handling code to it&#039;s own layer, independent of the widget stuff.  This event layer will have some of the same features, e.g. support for the capturing phase in IE and unified event objects modeled after the W3C DOM standard. Special mouse and key event handlers are responsible for normalizing event sequences and in the case of the key handler computing the key identifier. Another interesting feature, which we have brought from the IE to the other browsers is mouse event capturing.

Early documentation can ba found here: http://qooxdoo.org/documentation/general/dom_event_layer</description>
		<content:encoded><![CDATA[<p>Sometimes it seems that the time is right for some ideas. We are currently working on moving qooxdoo&#8217;s DOM event handling code to it&#8217;s own layer, independent of the widget stuff.  This event layer will have some of the same features, e.g. support for the capturing phase in IE and unified event objects modeled after the W3C DOM standard. Special mouse and key event handlers are responsible for normalizing event sequences and in the case of the key handler computing the key identifier. Another interesting feature, which we have brought from the IE to the other browsers is mouse event capturing.</p>
<p>Early documentation can ba found here: <a href="http://qooxdoo.org/documentation/general/dom_event_layer" rel="nofollow">http://qooxdoo.org/documentation/general/dom_event_layer</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Brewer</title>
		<link>http://ajaxian.com/archives/uniform-event-model-making-ie-think-w3c/comment-page-1#comment-253029</link>
		<dc:creator>Steve Brewer</dc:creator>
		<pubDate>Tue, 24 Jul 2007 11:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2602#comment-253029</guid>
		<description>Interesting.  What happens if you alter the DOM using innerHTML?  Will the resulting nodes by &quot;UEMed&quot;?</description>
		<content:encoded><![CDATA[<p>Interesting.  What happens if you alter the DOM using innerHTML?  Will the resulting nodes by &#8220;UEMed&#8221;?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
