#4459 new
Lars Brand

fireEvent_DOM: Object doesn't support property or method 'dispatchEvent'

Reported by Lars Brand | January 9th, 2014 @ 12:51 PM

I'm using qftest (http://www.qfs.de/en/index.html) for automation of regression tests for TestLink (http://testlink.org/)
The Error-Message from qftest is:
"An error occurred inside a script on this page.

This is not a bug in QF-Test, rather the opposite: Herewith QF-Test
informs you about a potentially serious problem in your application.
Please notify the developers of the application and include the
information provided below.

Line: 6598
Character: 5
Message: Object doesn't support property or method 'dispatchEvent'
Code: 0
URL: http://1.2.3.4/testlink199/third_party/prototype/prototype.js

/*  Prototype JavaScript framework, version 1.7.1 */
  function fireEvent_DOM(element, eventName, memo, bubble) {
    var event = document.createEvent('HTMLEvents');
    event.initEvent('dataavailable', bubble, true);

    event.eventName = eventName;
    event.memo = memo;

    element.dispatchEvent(event);
    return event;
  }

Comments and changes to this ticket

  • Jason Westbrook

    Jason Westbrook January 25th, 2014 @ 01:07 AM

    Can you post the code that triggered this error?

    Most likely Prototype has determined that any specific edge cases for firing an event do not exist in your environment so it defaults to native DOM event firing. However your environment does not support native DOM firing which is the cause of the error.

    Typically for one off situations there will not be another check for a specific edge case unless there is lots of browsers doing the same behavior.

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 ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages