Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
minus7
· 3y ago · 0 comments
`<div />` getting parsed as opening tag instead of self closing is a bug (be it in the browser or in the spec) and should be fixed
Comments
[–]
pornel
3y ago
It's been fixed. Send Content-Type: application/xhtml+xml and it will be parsed as an empty tag. But nobody brothers to turn that on. Without an opt-in it's unfixable due to backward compatibility.
[–]
the_mitsuhiko
3y ago
Why would it be a bug in the spec? “/“ is just a parsing error in html and is ignored.