From e8eb55ca5cb528532c508deee99f3c3d145ba05f Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sun, 1 Jan 2023 08:03:26 -0500 Subject: [PATCH] Make sure tag names are uppercased in debug assertions where they're uppercased --- leptos_dom/src/html.rs | 4 ++-- leptos_dom/src/html/math.rs | 4 ++-- leptos_dom/src/html/svg.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/leptos_dom/src/html.rs b/leptos_dom/src/html.rs index 5e79d0efa..6c060fa3d 100644 --- a/leptos_dom/src/html.rs +++ b/leptos_dom/src/html.rs @@ -699,7 +699,7 @@ macro_rules! generate_html_tags { ) { #[cfg(debug_assertions)] assert_eq!( - el.node_name(), + el.node_name().to_ascii_uppercase(), stringify!([<$tag:upper>]), "SSR and CSR elements have the same `TopoId` \ but different node kinds. This is either a \ @@ -716,7 +716,7 @@ macro_rules! generate_html_tags { ) { #[cfg(debug_assertions)] assert_eq!( - el.node_name(), + el.node_name().to_ascii_uppercase(), stringify!([<$tag:upper>]), "SSR and CSR elements have the same `TopoId` \ but different node kinds. This is either a \ diff --git a/leptos_dom/src/html/math.rs b/leptos_dom/src/html/math.rs index 2a46052cd..afc6361ee 100644 --- a/leptos_dom/src/html/math.rs +++ b/leptos_dom/src/html/math.rs @@ -64,7 +64,7 @@ macro_rules! generate_math_tags { ) { #[cfg(debug_assertions)] assert_eq!( - el.node_name(), + el.node_name().to_ascii_uppercase(), stringify!([<$tag:upper $(_ $second:upper $(_ $third:upper)?)?>]), "SSR and CSR elements have the same `TopoId` \ but different node kinds. This is either a \ @@ -81,7 +81,7 @@ macro_rules! generate_math_tags { ) { #[cfg(debug_assertions)] assert_eq!( - el.node_name(), + el.node_name().to_ascii_uppercase(), stringify!([<$tag:upper $(_ $second:upper $(_ $third:upper)?)?>]), "SSR and CSR elements have the same `TopoId` \ but different node kinds. This is either a \ diff --git a/leptos_dom/src/html/svg.rs b/leptos_dom/src/html/svg.rs index e8ed845be..9d856e1b2 100644 --- a/leptos_dom/src/html/svg.rs +++ b/leptos_dom/src/html/svg.rs @@ -61,7 +61,7 @@ macro_rules! generate_svg_tags { ) { #[cfg(debug_assertions)] assert_eq!( - el.node_name(), + el.node_name().to_ascii_uppercase(), stringify!([<$tag:upper $(_ $second:upper $(_ $third:upper)?)?>]), "SSR and CSR elements have the same `TopoId` \ but different node kinds. This is either a \ @@ -78,7 +78,7 @@ macro_rules! generate_svg_tags { ) { #[cfg(debug_assertions)] assert_eq!( - el.node_name(), + el.node_name().to_ascii_uppercase(), stringify!([<$tag:upper $(_ $second:upper $(_ $third:upper)?)?>]), "SSR and CSR elements have the same `TopoId` \ but different node kinds. This is either a \