mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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()
|
||||
}
|
||||
_ => {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue