plexus / hexp

Ruby virtual DOM for HTML
MIT License
56 stars 3 forks source link

Support for HTML5 #4

Closed plexus closed 2 years ago

plexus commented 11 years ago

Currently Hexp converts to a Nokogiri DOM to generate HTML. Nokogiri is based on libxml2, which only supports HTML 4 explicitly.

As a workaround one can generate without a doctype, and stick a HTML5 doctype at the start. This migth actually be good enough, using the new tags will not be a problem. The only thing I can think of that might matter is rules about auto-closing tags.