Bug: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. #25944
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: latest
Steps To Reproduce
<br />
tag.Link to code example
The current behavior
It renders
<br />
.The expected behavior
It renders
<br>
.Context
I'd like React to support removing trailing slash from void HTML elements out of the box. Due to validator.w3.org:
I originally requested this as a feature in Next.js, and was sent here.
Cheers.
The text was updated successfully, but these errors were encountered: