-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
category: parsingCorrectness and Edge Cases. Hail the DOMCorrectness and Edge Cases. Hail the DOMtype: bugSomething isn't working as intendedSomething isn't working as intended
Description
Hickory doesn't parse noscript tags correctly when they are in the head, but does when it is in body. noscript should be supported in both.
(require '[hickory.core :as hick]
'[hickory.render :as hr])
(-> "
<html>
<body>
<noscript>Ceçi n'est pas de JavaScript</noscript>
</body>
</html>"
hick/parse
hick/as-hickory
hr/hickory-to-html)
;;=>
'"<html><head></head><body>\n <noscript>Ceçi n'est pas de JavaScript</noscript>\n \n</body></html>"
(-> "
<html>
<head>
<noscript>Ceçi n'est pas de JavaScript</noscript>
</head>
</html>"
hick/parse
hick/as-hickory
hr/hickory-to-html)
;;=>
'"<html><head>\n <noscript></noscript></head><body>Ceçi n'est pas de JavaScript\n \n</body></html>"
Metadata
Metadata
Assignees
Labels
category: parsingCorrectness and Edge Cases. Hail the DOMCorrectness and Edge Cases. Hail the DOMtype: bugSomething isn't working as intendedSomething isn't working as intended