[Webkit-unassigned] [Bug 23318] New: click event listener remains registered after onclick attribute is removed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 14 08:21:00 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=23318

           Summary: click event listener remains registered after onclick
                    attribute is removed
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: caryclark at google.com


The attached test removes the onClick() attribute on the second element when
the first element is clicked. The test works correctly -- the second element no
longer responds to the click when the onClick() element is removed. However,
the EventTargetNode RegisteredEventListenerList still includes an entry for the
click event.

Android iterates through all nodes looking for ones that receive clicks, and
computes focus rings for those nodes. Attached is a patch that removes the
event listener when the attribute is removed. The patch works, but isn't
elegant. What's the right approach to fixing this bug?


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list