W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2006

[whatwg] Allow trailing slash in always-empty HTML5 elements?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 30 Nov 2006 04:21:31 +1100
Message-ID: <456DC19B.4010000@lachy.id.au>
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/
Received on Wednesday, 29 November 2006 09:21:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:50 UTC