[whatwg] Allow trailing slash in always-empty HTML5 elements?
Lachlan Hunt
lachlan.hunt at lachy.id.au
Wed Nov 29 09:21:31 PST 2006
Mihai Sucan wrote:
> Web developers want to be able to share code between XHTML and HTML
> projects.
Yes, some web developers want to do stupid things. If you want to share
data between HTML and XHTML, then do it properly. Parse it in one form
and re-serialise it in the other. Don't just use string processing to
do silly things like this:
xhtml = "<p>" + html + "</p>"
--
Lachlan Hunt
http://lachy.id.au/
More information about the whatwg
mailing list