jaspervdj / blaze-html

A blazingly fast HTML combinator library for Haskell.
http://jaspervdj.be/blaze
Other
240 stars 48 forks source link

Don't use XHTML hacks #43

Closed dag closed 12 years ago

dag commented 12 years ago

In my OCD view of things, I say you either

Since Blaze is supposed to be for HTML, I'd say go with the latter and drop the "openLeafs" setting completely. Otherwise it should support XHTML (be it 1/1.1 or 2.0 or 5) and in that setting generate proper, non-awkward plain XML. What Blaze is currently doing for HTML5 is kinda-sorta really XHTML5 but with HTML-compatibility hacks that you should never use. At the very least I'd like an openLeafs = True variant for HTML5.

Please excuse my OCD and accept my thanks for a lovely library. ☺

jaspervdj commented 12 years ago

Makes sense, fixed in 05c7001e1c30a3d7be53075a3ec0a100e85a2948 (on Hackage as 0.4.2.0). Thanks!