[Webkit-unassigned] [Bug 192621] New: messed up scope in eventHandler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 12 04:54:47 PST 2018


            Bug ID: 192621
           Summary: messed up scope in eventHandler
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Event Handling
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: etasho at gmail.com

On Chrome 71 (not on any Chrome before), if an element (select, button) has an inline onclick event with the id (of the element) specified as a parameter of the called function AND this element has children elements, the scope gets messed up and it tries to take the id of the child element.

<select id="myselect" onclick="jsDoSomething(id)"><option>1</option><option>2</option></select>

function jsDoSomething(id) {

Stackoverflow report: https://stackoverflow.com/questions/53740067/chrome-71-does-not-detect-id-in-an-onclick-event-unless-its-this-id/53740954?noredirect=1#comment94335519_53740954

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181212/16c4ba9e/attachment.html>

More information about the webkit-unassigned mailing list