Steps to reproduce
See attachment, but essentially this code in an HTML page will trigger it.
Note: more details to come… it turns out there’s more complication to this…
<select name="foo" onchange="this.form.submit();">
1.) If the JS code attempts to set a value that isn’t in the list of valid values… what is the expected behavior?
a.) It’s a no-op, silently swallow?
b.) Throw an error of some kind?
c.) Allow this to be set, even though it is not a valid option in the list?
2.) If the answer to #1 above is anything but "c", is it fair to say that the “selection” remains as the select was when it loaded, and thus opening it should NOT trigger an onchange event?
The onchange event should only fire if an actual change has occurred. This broken behavior is causing (redundant) expensive query reloads on pages in our web application due to a form submission tied to the change event.
Dev Channel specific:
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Sermet I.”
Changed Assigned To to “Bogdan B.”