Closed chinedufn closed 1 month ago
This commit makes it possible to use hyphenated attribute names when creating elements using the html! macro.
html!
For example, the following is now possible:
html! { <svg xmlns="http://www.w3.org/2000/svg" stroke-width="1.5" // ... > // ... </svg> }
Before this commit trying to add a "stroke-width" attribute would have led to a compile time error.
Published
html-macro = "0.2.3"
OR
percy-dom = "0.9.7"
This commit makes it possible to use hyphenated attribute names when creating elements using the
html!
macro.For example, the following is now possible:
Before this commit trying to add a "stroke-width" attribute would have led to a compile time error.