cheeriojs/dom-serializer — pull request #14 by Ackar (2014-09-05 23:55:37+00:00)
Title: Remove self closing SVG elements from the single tag list.

Having these SVG elements in the `singleTag` list cause them not to be closed when `xmlMode` is `false` and thus produce incorrect HTML.
Removing them from the list add a closing tag immediately after these, which make the output HTML correct.

Other possible solutions:
* Make all tags in the `singleTag` list self-closing.
* Have two different lists, one for void elements and one for foreign elements that need to be self-closed.

I chose this solution because I think it's the least likely to break anything ;)