allow /> for html4/xhtml documents (with possible html5 warning) #30

Closed
Pomax opened this Issue Apr 27, 2012 · 1 comment

Projects

None yet

2 participants

@Pomax
Contributor
Pomax commented Apr 27, 2012

we should not fatally break on older html closers, rather we should allow it and warn or notify

@toolness

This was fixed in 83034bf.

Note that we do not allow /> for non-void elements, because the results of this are actually completely unintuitive--you'd think that a browser would see it and self-close the element, as XHTML does, but it actually just throws out the /, interpreting it as an opening tag but not closing it. I once spent hours debugging some HTML I wrote because the result was so counterintuitive.

@toolness toolness closed this Apr 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment