Bug 14887

Summary: addEventListener doesn't work
Product: WebKit Reporter: Mitch 74 <mitch074>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mitz
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: PC   
OS: Windows XP   
URL: http://moneyshop.perso.cegetel.net/arc/form.php

Mitch 74
Reported 2007-08-06 06:04:27 PDT
I' 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't supported, it switches to 'legacy' 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).
Attachments
mitz
Comment 1 2007-08-06 06:19:55 PDT
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 'forms' 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 ***
Note You need to log in before you can comment on or make changes to this bug.