cheeriojs/dom-serializer — pull request #11 by azakus (2014-08-06 23:55:14+00:00)
Title: Fix the list of self-closing tags

In HTML, only a few tags can be self-closing: http://www.w3.org/TR/html5/syntax.html#void-elements

Embedded SVG is handled as XML, and the self-closing tags must have the '' syntax.

This patch special cases a few SVG nodes as being XML-style self-closing.

A few elements in singleTag have been marked as "deprecated" or "obsolete", because they have been removed from the
HTML5 spec. These should probably be removed, and may have been removed from some browsers already.

Note: not implemented is a check that self closing xml tags appear inside of