Export to GitHub

ndmitchell - issue #562

Add flag to enable less strict parsing of <script> tag


Posted on Sep 23, 2012 by Happy Cat

When I parse the following with TagSoup...

<script> if (x<bomb) </script>

...then TagSoup sees the "<bomb" as the start of a new tag. I understand why, but this isn't useful.

Is there a way to make it not see the "<bomb" ?

Comment #1

Posted on Sep 25, 2012 by Quick Hippo

I don't believe so, I'll leave this as a bug to implement such a feature. There is a feature to change the way scripts are written out, but not read in.

Comment #2

Posted on Oct 3, 2012 by Happy Camel

Comment deleted

Comment #3

Posted on Jan 19, 2014 by Happy Rhino

Comment deleted

Comment #4

Posted on Jan 19, 2014 by Happy Rhino

A similar issue arose in Hakyll: https://github.com/jaspervdj/hakyll/issues/188

Comment #5

Posted on Jan 20, 2014 by Quick Hippo

I added a special case for script.

Comment #6

Posted on Jan 20, 2014 by Quick Hippo

Released as 0.13.1

Status: Released

Labels:
Type-Defect Priority-Medium Proj-TagSoup