diff options
-rw-r--r-- | components/script/dom/document.rs | 2 | ||||
-rw-r--r-- | tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 12eab0cf4e2..2eb9bd8806c 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -2156,7 +2156,7 @@ impl DocumentMethods for Document { Ok(Root::upcast(CustomEvent::new_uninitialized(GlobalRef::Window(&self.window)))), "htmlevents" | "events" | "event" => Ok(Event::new_uninitialized(GlobalRef::Window(&self.window))), - "keyboardevent" | "keyevents" => + "keyboardevent" => Ok(Root::upcast(KeyboardEvent::new_uninitialized(&self.window))), "messageevent" => Ok(Root::upcast(MessageEvent::new_uninitialized(GlobalRef::Window(&self.window)))), diff --git a/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini b/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini index a81231ac8d9..3635263e6fd 100644 --- a/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini +++ b/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini @@ -456,8 +456,3 @@ [createEvent('WHEELEVENT') should be initialized correctly.] expected: FAIL - - [Should throw NOT_SUPPORTED_ERR for pluralized non-legacy event interface "KeyEvents"] - expected: FAIL - bug: https://github.com/servo/servo/issues/10735 - |