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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>14887</bug_id>
          
          <creation_ts>2007-08-06 06:04:27 -0700</creation_ts>
          <short_desc>addEventListener doesn&apos;t work</short_desc>
          <delta_ts>2007-08-06 06:19:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13707</dup_id>
          
          <bug_file_loc>http://moneyshop.perso.cegetel.net/arc/form.php</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Mitch 74">mitch074</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3000</commentid>
    <comment_count>0</comment_count>
    <who name="Mitch 74">mitch074</who>
    <bug_when>2007-08-06 06:04:27 -0700</bug_when>
    <thetext>I&apos; m using a script to add event listeners to all inputs in a form; this script essentially goes through all form elements, checks its type and depending on the type attaches several event listeners to the clic, blur and change events.
When addeventlistener isn&apos;t supported, it switches to &apos;legacy&apos; NN4/IE model.

This works for IE5/7 in fallback mode, and for Gecko 1.8+/Opera 9.2/Konqueror 3.5 in w3c mode, but not in Safari 3.0.2 beta/win32 (even using 08082007 Webkit lightly).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2950</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-08-06 06:19:55 -0700</bug_when>
    <thetext>Based on the first (and only) error I see in the JavaScript console when opening the URL, I think the problem is that Document does not have the &apos;forms&apos; property. In WebKit, only HTMLDocument has that property, and the URL is an XML document. Bug 13707 has a patch that addresses the issue.

*** This bug has been marked as a duplicate of 13707 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>