otherinbox/muddle — pull request #11 by kerinin (2012-04-10 05:25:45+00:00)
Title: Rm/no nokogiri

I ran into that HAML/HTML5 problem this morning, and the more I thought about it the more I felt like the best option here is to be as permissive as possible by default. So I ripped out Nokogiri from all the filters and replaced it with Hpricot - 'cause Hpricot's designed to play nice with unexpected HTML.

That required re-working some of how the document was being parsed, but I like the new approach better - most of the grunt work is being done by some new functions on the `Muddle::Filter` class.

It's still doing a final pass through Nokogiri and setting the Doctype to XHTML Strict if it hasn't been defined explicitly, but at least that's now a final step so malformed/unexpected markup shouldn't cause as much havok with the style insertion any more.