SparkViewEngine/spark — pull request #32 by cawagner (2012-11-09 20:32:00+00:00)
Title: Only void tags get self-closed now.

I've changed the ChunkBuilderVisitor so that it only self -closes the void tags specified in the current HTML5 standard.

This prevents the generation of invalid HTML like

, which browsers interpret as an

tag that is never closed, but still allows valid cases like .

We use an MVVM framework that often requires the use of empty elements like , and Shade templates like

span data-bind="text: hello"

generate: