From 067478948885436102333ce10e06aa37b7f08e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20Sch=C3=B6lhorn?= Date: Sat, 9 May 2020 19:15:51 +0200 Subject: [PATCH] fix: SVG element spelling There were some spelling errors in the list of element names used to decide if the XML namespace should be assigned to the element. Note that this fix is not necessary for most modern browsers, as they already automatically provide the correct namespace for SVG etc. --- src/browser/dom/virtual_dom_bridge.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/browser/dom/virtual_dom_bridge.rs b/src/browser/dom/virtual_dom_bridge.rs index 6ab3c5fb4..8ecf21528 100644 --- a/src/browser/dom/virtual_dom_bridge.rs +++ b/src/browser/dom/virtual_dom_bridge.rs @@ -357,12 +357,12 @@ impl From<&web_sys::Element> for El { "switch", "symbol", "unknown", - "linear_gradient", - "radial_gradient", - "mesh_gradient", + "linearGradient", + "radialGradient", + "meshGradient", "stop", "image", - "r#use", + "use", "altGlyph", "altGlyphDef", "altGlyphItem", @@ -381,7 +381,7 @@ impl From<&web_sys::Element> for El { "meshRow", "view", "colorProfile", - "animage", + "animate", "animateColor", "animateMotion", "animateTransform",