ravichugh / sketch-n-sketch

Direct Manipulation Programming for HTML/SVG

Home Page:http://ravichugh.github.io/sketch-n-sketch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HtmlParser for <script>

MikaelMayer opened this issue · comments

Currently, if I have dynamically added code:e

<script>
document.body.append("<img src='" + url + "'>")
</script>

this will create trouble because it thinks that <img is a tag to parse.
We should only stop script parsing (and same for style) when </script> is encountered.