-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html4 macro incorrectly leaves script tags unclosed #126
Comments
It seems because the Solution 1 consider :sgml as html, share the void tags with :html, :xhtml
Solution 2 define a separate void-tags for :sgml, for html4,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: