<div class="gmail_quote">On Fri, Apr 24, 2009 at 7:26 PM, Boris Zbarsky <span dir="ltr"><<a href="mailto:bzbarsky@mit.edu">bzbarsky@mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Ojan Vafai wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If a linear list of things the event is targeting is sufficient, of<br>
course, and we're ok with the random third argument of<br>
addEventListener being carted around, then we might be ok using it...<br>
<br>I think this is sufficient. Although it is a bit unfortunate that dispatch order is undefined.<br>
</blockquote>
<br></div>
Those are unrelated issues, aren't they? The linear list I was referring to is the proposed parentNode (or equivalent) chain; order there is well-defined, presumably. For each element in this list, one can have multiple listeners for the event; the dispatch order here is currently undefined, but that could be changed.<div class="im">
</div></blockquote><div><br></div><div>Sorry, I had misread this. Although, I think a linear list of things the event is targeting is sufficient.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a reason that they can't dispatch in a guaranteed order?<br>
</blockquote>
<br></div>
You'd probably have to check with the folks who wrote DOM2 Events, if the question is why the spec says what it says.<br>
<br>
If the question is about current implementations, nothing obvious jumps out at me in the one implementation I'm familiar with (Gecko's).<br><font color="#888888">
</font></blockquote><div><br></div><div>Yeah, I'm more interested in implementation difficulties. I can't think of anything obvious in WebKit's implementation either, but I'm not too familiar with the event handling code.</div>
<div><br></div><div>Ojan</div></div>