You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug breaks HTML4 markup massively for e.g. Firefox (nothing after first script element ever gets parsed because it's all taken to be part of the script).
The text was updated successfully, but these errors were encountered:
It seems because the html4 macro set html-mode as :sgml, which have no handling is defined. The default rendering would render all empty tag with no end tag.
Solution 1
consider :sgml as html, share the void tags with :html, :xhtml
When I write HTML4 templates, Hiccup produces markup without closing tags for <script>:
user=> (require '[hiccup.page :refer [html4]])
nil
user=> (html4 [:head [:script {:src "foo.js" :type "text/javascript"}]])
"\n<script src="foo.js" type="text/javascript">"
However, the HTML 4.01 specification clearly requires end tags for <script>:
http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.1
This bug breaks HTML4 markup massively for e.g. Firefox (nothing after first script element ever gets parsed because it's all taken to be part of the script).
The text was updated successfully, but these errors were encountered: