aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorJerens Lensun <54782057+jerensl@users.noreply.github.com>2025-03-24 03:16:48 +0800
committerGitHub <noreply@github.com>2025-03-23 19:16:48 +0000
commitefd6e8639369308715e35532b5f29e3bc399f1ce (patch)
treeb9f003aa0b81686969629fff164e8be0323ec74c /components/script
parent19d5f5f06fc9c88691770734836a25e67c2e7c26 (diff)
downloadservo-efd6e8639369308715e35532b5f29e3bc399f1ce.tar.gz
servo-efd6e8639369308715e35532b5f29e3bc399f1ce.zip
fix: radio input element don't trigger validity state (#36103)
Signed-off-by: jerensl <54782057+jerensl@users.noreply.github.com>
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/htmlinputelement.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index f2e55e3e91e..e647f19a47d 100644
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -2544,8 +2544,10 @@ impl VirtualMethods for HTMLInputElement {
self.upcast::<Element>()
.check_ancestors_disabled_state_for_form_control();
- self.validity_state()
- .perform_validation_and_update(ValidationFlags::all());
+ for r in radio_group_iter(self, self.radio_group_name().as_ref()) {
+ r.validity_state()
+ .perform_validation_and_update(ValidationFlags::all());
+ }
}
fn unbind_from_tree(&self, context: &UnbindContext) {