#6 ✓resolved
John-David Dalton

Event#observe no longer supports "useCapture" param should be documented

Reported by John-David Dalton | April 24th, 2008 @ 05:47 PM

see title.

Comments and changes to this ticket

  • John-David Dalton

    John-David Dalton April 24th, 2008 @ 05:47 PM

    • State changed from “new” to “doc”
  • John-David Dalton

    John-David Dalton May 29th, 2008 @ 04:36 AM

    • Assigned user set to “Tobie Langel”
  • Jakob Kruse

    Jakob Kruse October 16th, 2008 @ 07:04 PM

    • Tag set to needs_docs

    I spent several hours figuring out why useCapture = true didn't work today. Can somebody please insert a comment in the docs? Or tell me what to do and I'll happily do it myself :)

    On a related note, removing support for capture phase event handlers is a really (really!) bad idea. They are currently the only reasonable way to handle focus/blur in something like a keyboard driven menu system.

  • Andrew Dupont

    Andrew Dupont October 16th, 2008 @ 10:22 PM

    • State changed from “doc” to “resolved”

    Fixed this in the docs.

    We removed capture phase support because we can't guarantee it across browsers. If you need to use the capture phase in compliant browsers, you'll have to fork your code anyway, so our abstractions wouldn't be of much help anyway.

  • Jakob Kruse

    Jakob Kruse October 17th, 2008 @ 09:15 AM

    Thank you for the doc update!

    Actually, it would be helpful. I wouldn't need to fork my code if I could do:

    Event.observe('mydiv', 'focusout', myblurhandler); Event.observe('mydiv', 'blur', myblurhandler, true);

    In fact, those two together is how you (would) guarantee delegated blur events across current browsers. The removal of useCapture from Prototype means now only the non-standard of those two (the focusout event) is supported. Seems odd...

  • Diego Perini

    Diego Perini December 2nd, 2008 @ 03:38 AM

    I really...really hope the team members can change their minds.

    Do you team have infos that I don't have about Opera/Firefox/Safari changing and implement an IE event model too ?

    Please this is one of the good things we still have. Do not limit your users, there is really no need because one browser do not support it.

    Should we have ditched "DOMContentLoaded" with the same philosophy just because we don't have it in IE ?

    There are much more important things we don't have in IE, this is not a reason to castrate the functionality of 4 other popular browsers.

    The fact is that what you are taking away has been proved to be functional also on IE. Delegation will need that, form handling and validation is the first part I see penalized by this cut.

    Hope MHO counts as a vote at least...

    -- Diego

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 02:25 AM

    • Tag changed from needs_docs to missing:documentation

    [not-tagged:"needs_docs" tagged:"missing:documentation" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 03:38 AM

    • Tag changed from missing:documentation to needs:doc

    [not-tagged:"missing:documentation" tagged:"needs:doc" bulk edit command]

  • Tobie Langel

    Tobie Langel November 29th, 2009 @ 07:18 PM

    • Milestone cleared.
    • Assigned user changed from “Tobie Langel” to “Samuel Lebeau”
  • Tobie Langel

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Referenced by

Pages