Closed cespare closed 9 years ago
Looks Cheerio gives <script>
tags a type = 'script'
, not type = 'tag'
, so the compiler completely missed them. The same goes for <style>
tags. I've fixed both and added test cases.
Thanks for the report!
Thanks for the quick fix!
You're welcome!
Published as domly@0.0.8
.
Awesome!
I've got some HTML that domly turns into JS which crashes. Here's a minimal repro (note the leading spaces in front of the
<script>
tag):I'm compiling with
domly.precompile(contents, {stripWhitespace: true})
.I get this:
See that
el1
is referenced but never created.