mirror of
https://github.com/servo/servo
synced 2026-05-03 12:52:25 +02:00
script: Fix bogus is_listed_element assertion.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user