This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1139 - events/dispatchEvent12.xml misused EventMonitor
Summary: events/dispatchEvent12.xml misused EventMonitor
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 2 (show other bugs)
Version: unspecified
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-02 05:27 UTC by Curt Arnold
Modified: 2005-03-02 05:36 UTC (History)
0 users

See Also:


Attachments

Description Curt Arnold 2005-03-02 05:27:37 UTC
eventMonitor was only designed to be used with a variable named monitor and was not intended for 
multiple instances within one test.  dispatchEvent12 attempted to use a second instance of 
EventMonitor to attempt to fool removeEventListener into removing the other instance of EventMonitor.  
The test should have been written using a distinct instance of EventListener.

-<var name="other" type="EventMonitor"/>
+<var name="other" type="EventListener">
+     <handleEvent/>
</var>