Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6531203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:50:59+00:00 2026-05-25T09:50:59+00:00

I had some event code which failed in Opera and I have stripped it

  • 0

I had some event code which failed in Opera and I have stripped it down to this small testcase.

Basically the problem is that the event handler doesn’t run in Opera if the third parameter of addEventListener is not set. The value in the testcase increments in both Firefox and Chrome when the “useCapture not set”-button is clicked, but not in Opera.

This (old) article indicates that Opera is different than webkit & gecko browsers:
http://my.opera.com/hallvors/blog/2006/10/12/2006-10-12-event-capture-explained. I’m not sure what to make out of it though. MDN says useCapture should default to false.

is the default true in Opera, is the parameter simply not optional, or what am I missing? What is the correct behaviour?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:50:59+00:00Added an answer on May 25, 2026 at 9:50 am

    If in doubt, refer to the spec. The original and still current spec is W3C’s DOM Level 2 Events. Looking at the ECMASCript binding page, it looks as though the useCapture parameter is required, since there is no mention of it being optional.

    DOM Level 3 Events explicitly mentions useCapture as being optional, although I don’t think this draft spec has ever reached widespread adoption in browsers.

    The relevant MDN page also has a note on this:

    Note: useCapture became optional only in more recent versions of the
    major browsers; for example, it was not optional prior to Firefox 6.
    You should provide that parameter for broadest compatibility.

    Bottom line: it’s safest to always pass in all three parameters, and Opera is well within its rights to insist on it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an intermittent problem with some code that writes to a Windows Event
I have some jQuery code that highlights which radio button is checked by turning
I have a code like this one: $('div.widgetDroppable').droppable({ accept: 'li.widget', drop: function(event, ui) {
I had some time this afternoon to run a head to head comparison between
I had some code that ran commands through Runtime.getRuntime.exec(String) , and it worked on
I had some decryption code (using wincrypt.h ) that lived within my FileReader.cpp class.
If I had some XML such as this loaded into an XDocument object: <Root>
I have a page with some custom validation which displays a result in a
I am beginner in C# programming. I have encountered small problem during building application
I have an ajax calendar which changes the month when some arrows are clicked.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.