The current serialization algorithm does not match http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#parsing-html-fragments We should either fix our implementation or give back feedback to whatwg.
I'm pretty sure this is good now.