[Webkit-unassigned] [Bug 231194] New: HTMLSelectElement's change event does not have composed true set

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 4 15:30:16 PDT 2021


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

            Bug ID: 231194
           Summary: HTMLSelectElement's change event does not have
                    composed true set
           Product: WebKit
           Version: Safari 14
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: emarquez at google.com

The `change` event on HTMLSelectElement has {bubbles: true, composed: false} unlike the `input` event which has `{bubbles: true, composed: true}` This means that if someone wants to listen for the change event from a <select> inside of the shadow root of a custom element, then it will not propagate through the composed shadow tree.

Live repro:
https://jsbin.com/zahocodiwo/edit?html,output

Steps to repro:

1. Place a <select> element with <option>s inside a shadow root
2. Add an event listener for the `change` event on the shadow root host
3. toggle between options in the <select>
4. observe that the `change` event listener is not called.

Expected behavior:

the event listener is called and the change event has `composed: true`

Actual behavior:

The event listener is not called and the change event has `composed: false`

-- 
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/20211004/71f36847/attachment.htm>


More information about the webkit-unassigned mailing list