mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Treat the keygen
element as obsolete (#30429)
* Eradicate the `keygen` element * Run `./mach fmt` * Fix relevant Servo test * Fix outdated manifest
This commit is contained in:
parent
f330cf534d
commit
80d9a2bb4f
10 changed files with 31 additions and 47 deletions
|
@ -650,7 +650,6 @@ impl HTMLElement {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#category-label
|
||||
pub fn is_labelable_element(&self) -> bool {
|
||||
// Note: HTMLKeygenElement is omitted because Servo doesn't currently implement it
|
||||
match self.upcast::<Node>().type_id() {
|
||||
NodeTypeId::Element(ElementTypeId::HTMLElement(type_id)) => match type_id {
|
||||
HTMLElementTypeId::HTMLInputElement => {
|
||||
|
@ -670,12 +669,6 @@ impl HTMLElement {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#category-listed
|
||||
pub fn is_listed_element(&self) -> bool {
|
||||
// Servo does not implement HTMLKeygenElement
|
||||
// https://github.com/servo/servo/issues/2782
|
||||
if self.upcast::<Element>().local_name() == &local_name!("keygen") {
|
||||
return true;
|
||||
}
|
||||
|
||||
match self.upcast::<Node>().type_id() {
|
||||
NodeTypeId::Element(ElementTypeId::HTMLElement(type_id)) => match type_id {
|
||||
HTMLElementTypeId::HTMLButtonElement |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue