diff options
author | elomscansio <163124154+elomscansio@users.noreply.github.com> | 2025-03-22 15:35:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-22 19:35:13 +0000 |
commit | 80434d46448f3b5d818864557ffd46d238132f30 (patch) | |
tree | 7cae5cf2c74cbc30ce164dd559fa0759a19aced8 /components/script/dom/webgpu/gpusupportedfeatures.rs | |
parent | 7c574141c06d4705c35232a72b8ce75196291bb3 (diff) | |
download | servo-80434d46448f3b5d818864557ffd46d238132f30.tar.gz servo-80434d46448f3b5d818864557ffd46d238132f30.zip |
Fix form validation for readonly inputs and update WPT expectations (#36090)
The HTML specification states that an input element with the `readonly`
attribute must be barred from constraint validation. Our implementation
previously included an extra check (`does_readonly_apply()`) to verify
if `readonly` applies to the input type, which is unnecessary.
This caused three test failures in:
tests/wpt/meta/html/semantics/forms/constraints/form-validation-willValidate.html.ini
- Removed `does_readonly_apply()` as it is not required for validation.
- Removed `tests/wpt/meta/html/semantics/forms/constraints/form-validation-willValidate.html.ini` since the test now passes.
To update the Web Platform Test expectations, see:
https://book.servo.org/hacking/testing.html#updating-web-platform-test-expectations
Fixes servo/servo#36076
Signed-off-by: Emmanuel Elom <elomemmanuel007@gmail.com>
Diffstat (limited to 'components/script/dom/webgpu/gpusupportedfeatures.rs')
0 files changed, 0 insertions, 0 deletions