cgrand/enlive

End tag for <col> violates the specs

Opened this issue · 0 comments

user> (require '[net.cgrand.enlive-html :as html])
nil
user> (html/emit* {:tag :col})
("<" "col" "></" "col" ">")

Expected result: just strings amounting to ""; no end tag.

In HTML 4, col is an "empty" element whose end tag is "forbidden", according to
https://www.w3.org/TR/html401/struct/tables.html#h-11.2.4.2

And in HTML 5 there is "No end tag" according to
https://www.w3.org/TR/html5/tabular-data.html#the-col-element