fix: allow svg elements to use inner_html (#2764)

This commit is contained in:
luoxiaozero 2024-08-04 20:14:22 +08:00 committed by GitHub
parent dcdad73476
commit c70009243a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -458,7 +458,7 @@ fn attribute_to_tokens(
(name.contains('-') && !name.starts_with("aria-"))
// TODO check: do we actually provide SVG attributes?
// we don't provide statically-checked methods for SVG attributes
|| tag_type == TagType::Svg
|| (tag_type == TagType::Svg && name != "inner_html")
{
let value = attribute_value(node);
quote! {