Skip to content

Tidy seems to get confused by HTML strings in JavaScript blocks. #700

Closed
@petdance

Description

I believe that the <script> tag should be telling tidy not to check its contents, but tidy complains about the </p> in a string.

$ cat foo.html
<!DOCTYPE html>
<html>
    <head>
        <title>scratch</title>
    </head>
    <body>
<script><!--
str = '</p>';
--></script>
    </body>
</html>
$ tidy -q -e foo.html
line 8 column 9 - Warning: '<' + '/' + letter not allowed here

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions