aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorEnnui Langeweile <85590273+EnnuiL@users.noreply.github.com>2023-09-26 18:37:46 -0300
committerGitHub <noreply@github.com>2023-09-26 21:37:46 +0000
commit80d9a2bb4f53090f07b1fd4900ddcf7d49f6fdac (patch)
treed934700c20588df83c867aded3bc801a060521a3 /components/script/dom/htmlelement.rs
parentf330cf534d69d609c036e4240e8320c9ccf80bc1 (diff)
downloadservo-80d9a2bb4f53090f07b1fd4900ddcf7d49f6fdac.tar.gz
servo-80d9a2bb4f53090f07b1fd4900ddcf7d49f6fdac.zip
Treat the `keygen` element as obsolete (#30429)
* Eradicate the `keygen` element * Run `./mach fmt` * Fix relevant Servo test * Fix outdated manifest
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index 01ba77278cd..c6cf8628896 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -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 |