<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1139</bug_id>
          
          <creation_ts>2005-03-02 05:27:37 +0000</creation_ts>
          <short_desc>events/dispatchEvent12.xml misused EventMonitor</short_desc>
          <delta_ts>2005-03-02 05:36:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>DOM TS</product>
          <component>DOM Level 2</component>
          <version>unspecified</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Curt Arnold">carnold</reporter>
          <assigned_to name="Curt Arnold">carnold</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4094</commentid>
    <comment_count>0</comment_count>
    <who name="Curt Arnold">carnold</who>
    <bug_when>2005-03-02 05:27:37 +0000</bug_when>
    <thetext>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.

-&lt;var name=&quot;other&quot; type=&quot;EventMonitor&quot;/&gt;
+&lt;var name=&quot;other&quot; type=&quot;EventListener&quot;&gt;
+     &lt;handleEvent/&gt;
&lt;/var&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>