weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 174 forks source link

<video> tag should be closing #85

Closed belovachap closed 11 years ago

belovachap commented 11 years ago

I was trying to put a video element on a page and it started to swallow the follwing image element. Looking around the internet seems to suggest that the video tag needs a closing tag.

[:video]
[:img {:src "..."}]

outputs as:

<video><img src="...">

should be:

<video></video><img src="...">
weavejester commented 11 years ago

It looks like :video needs to be added to the list of container tags.

You can temporarily get around this by adding a blank string as the body for the video tag (in case that wasn't obvious).

belovachap commented 11 years ago

thanks! <3