mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
script: Fix bogus is_listed_element assertion.
This commit is contained in:
parent
6496efd0e7
commit
3dddb70038
1 changed files with 2 additions and 1 deletions
|
@ -203,7 +203,8 @@ impl HTMLFormElementMethods for HTMLFormElement {
|
||||||
elem.downcast::<HTMLTextAreaElement>().unwrap().form_owner()
|
elem.downcast::<HTMLTextAreaElement>().unwrap().form_owner()
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
debug_assert!(!elem.downcast::<HTMLElement>().unwrap().is_listed_element());
|
debug_assert!(!elem.downcast::<HTMLElement>().unwrap().is_listed_element() ||
|
||||||
|
elem.local_name() == &atom!("keygen"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue