weavejester / hiccup

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

Added an explicit end tag to the 'table' element #22

Closed indy closed 13 years ago

indy commented 13 years ago

'table' tags can be incorrectly rendered if they don't have an explicit ending tag. For example, in Chrome the following html renders the table below the unordered list:

  <head></head>
  <body>
    <h1></h1>
    <table />
    <ul><li>1</li><li>2</li></ul>
  </body>
</html>

replacing <table/> with <table></table> fixes this