Skip to content

Commit a94df0b

Browse files
committed
adjust lint warning message
1 parent 77d2963 commit a94df0b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/yew-macro/src/html_tree/html_element.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,9 @@ impl ToTokens for HtmlElement {
376376
emit_warning!(
377377
name_span.clone(),
378378
format!(
379-
"The tag '{dashedname}' is not matching its normalized form '{lowercase_name}'. If you want \
380-
to keep this form, change this to a dynamic tag `@{{\"{dashedname}\"}}`."
379+
"The tag '{dashedname}' is not matching its normalized form '{lowercase_name}' \
380+
and is not a recognized SVG or MathML element. If you want to keep this name, \
381+
you can use the dynamic tag `@{{\"{dashedname}\"}}` to silence this warning."
381382
)
382383
)
383384
}

packages/yew-macro/tests/html_lints/fail.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: The tag 'tExTAreA' is not matching its normalized form 'textarea'. If you want to keep this form, change this to a dynamic tag `@{"tExTAreA"}`.
1+
warning: The tag 'tExTAreA' is not matching its normalized form 'textarea' and is not a recognized SVG or MathML element. If you want to keep this name, you can use the dynamic tag `@{"tExTAreA"}` to silence this warning.
22
--> tests/html_lints/fail.rs:17:10
33
|
44
17 | <tExTAreA />

0 commit comments

Comments
 (0)