rsx
macro should prevent any children in self-closing elements
#2397
Labels
enhancement
New feature or request
html
Related to the html crate
rsx
Related to rsx or the dioxus-rsx crate
Feature Request
HTML includes several self-closing elements that are not designed to contain any child elements. Examples of such elements are:
Currently, the
rsx!
macro in Dioxus allows content to be placed inside these self-closing elements:Implement Suggestion
The
rsx!
macro should produce an error if any content is nested inside self-closing elements. This would align the behavior of the macro with standard HTML practices and prevent potential rendering issues.The text was updated successfully, but these errors were encountered: