aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/create.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/create.rs')
-rw-r--r--components/script/dom/create.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/create.rs b/components/script/dom/create.rs
index 62484c6f861..37aaf07286f 100644
--- a/components/script/dom/create.rs
+++ b/components/script/dom/create.rs
@@ -80,6 +80,7 @@ use crate::dom::htmltrackelement::HTMLTrackElement;
use crate::dom::htmlulistelement::HTMLUListElement;
use crate::dom::htmlunknownelement::HTMLUnknownElement;
use crate::dom::htmlvideoelement::HTMLVideoElement;
+use crate::dom::svgelement::SVGElement;
use crate::dom::svgsvgelement::SVGSVGElement;
use crate::realms::{enter_realm, InRealm};
use crate::script_thread::ScriptThread;
@@ -110,7 +111,7 @@ fn create_svg_element(
match name.local {
local_name!("svg") => make!(SVGSVGElement),
- _ => Element::new(name.local, name.ns, prefix, document),
+ _ => make!(SVGElement),
}
}