I use Hpricot to parse a theme file. I noticed, however, that if I submit a valid HTML5 document to Hpricot (), it automatically closes the HTML5 tags (e.g. <section>) and gets confused with DOCTYPE.
Are there any extensions for Hpricot, or perhaps a flag that I need to set that will allow HTML5 documents to be processed correctly?
source
share