-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The default action of beforeinput
does not define <input>
and <textarea>
cases
#156
Comments
For context, see: |
Well, it does say "None otherwise" so that should cover all those not mentioned previously. So basically the |
https://issues.chromium.org/issues/40948436 is also related. It changed recently the behavior in Chrome so that one can call preventDefault() when changing type=number values using the spin buttons (assuming I understood it correctly). UIEvents spec has a bit different definition: https://w3c.github.io/uievents/#event-type-beforeinput |
From TPAC 2024 minutes:
|
This is still unclear to me:
When pressing Enter in an <input> (which is single-line), it doesn't insert a newline, thus it doesn't change the value. Therefore, this action is not the default one. Here the action is universally to submit the form. So, is it also in the scope of "cancelable" from the quote? I would tend to say yes. Let me rephrase the quote to show how I perceive it:
Also, as a reminder, the arguments I had posted in my comment 7 on Bugzilla:
|
https://w3c.github.io/input-events/#event-type-beforeinput
Currently, it's talking about only
contenteditable
andEditContext
.So, it does not define about
<input>
and<textarea>
.The text was updated successfully, but these errors were encountered: