Skip navigation.

miscoded

the web is a hack

Posts tagged with "event capture"

captured in India

, , ,

Google Indic Transliteration does quite precisely nothing in Opera. The reason is that they try adding a capturing key event listener to a TEXTAREA:

a.addEventListener(b,c,true)

from function _TR_addHandler in labs001.js.

If you've followed the past twists of the event capture drama, you might recall that since Mozilla decided to play chicken and re-write the spec according to their buggy implementation, we decided to be bug compatible. So why is the transliteration still broken? Seems like we aren't quite compatible after all?
Yup. Test case here.
Capturing key event listeners still don't fire on target. That's a bug in our bug compatibility, leaving us more standards compliant than intended.

So our bugs are buggy :whistle: . How do you spell "irony" in Hindi again?

Firechicken

, , ,

Over at Mozilla.org they've been working on fixing their load events capture bug. That's great news, because Opera has had lots of trouble with sites that used event capture when they didn't intend to do so. We had the correct, spec-compliant implementation. However, web developers don't read specs. They test in browsers. We suffered the incompatibility problems because sites were written for Firefox's implementation. We've had ugly problems caused by this issue for years, on extremely important sites like AOL.com, and we've worked hard through Open The Web, information and even site patching.

Inevitably, when Firefox fixes the bug they run into those badly coded sites. They start seeing the problems we've had all along. So what do they do? They play chicken! They decide to tweak the spec to solve the problem their bugs created in the first place.

If they go for this solution, we have to follow them for compliance.

To be fair, I do think that aligning a spec to the web can be a good solution, as long as it ensures interoperability and covers the use cases. And the DOM2 Events spec itself is vague. I guess the problem is a spec that attempts to be so language-generic that it avoids referring to even the all-important JavaScript window object, it isn't clearly specified where the window object fits into the event capture/bubble model. They can and probably will argue that their implementation is DOM conformant (and make sure the HTML5/web apps spec lands on their side?).

I'm still disappointed.

event capture explained

, , , ...

What is event capture, and what are the implementation gotchas that cause problems for browsers and webmasters? Read on for details..

Read more...