diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index b5295904eab..02d640f1715 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -2154,7 +2154,7 @@ impl DocumentMethods for Document { Ok(Root::upcast(MouseEvent::new_uninitialized(&self.window))), "customevent" => Ok(Root::upcast(CustomEvent::new_uninitialized(GlobalRef::Window(&self.window)))), - "htmlevents" | "events" | "event" => + "htmlevents" | "events" | "event" | "svgevents" => Ok(Event::new_uninitialized(GlobalRef::Window(&self.window))), "keyboardevent" => Ok(Root::upcast(KeyboardEvent::new_uninitialized(&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 3635263e6fd..dcf0da1cd09 100644 --- a/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini +++ b/tests/wpt/metadata/dom/nodes/Document-createEvent.html.ini @@ -301,30 +301,6 @@ bug: https://github.com/servo/servo/issues/10736 expected: FAIL - [SVGEvents should be an alias for Event.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [createEvent('SVGEvents') should be initialized correctly.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [svgevents should be an alias for Event.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [createEvent('svgevents') should be initialized correctly.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [SVGEVENTS should be an alias for Event.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - - [createEvent('SVGEVENTS') should be initialized correctly.] - bug: https://github.com/servo/servo/issues/10741 - expected: FAIL - [SVGZoomEvent should be an alias for SVGZoomEvent.] expected: FAIL