Hi there,
I am one of the maintainers of a Ruby library called Nokogiri. I have been maintaining a fork of nekohtml that has a fix for missing closing angle brackets. I would like for the patch to be maintained upstream instead of having to keep my fork. I attached a patch to this ticket with a test case demonstrating the issue the change tries to fix. Please take a look at the patch and let me know what you think.