Skip to content

Extra newline inserted inside inlined script element #802

Open
@da2x

Description

@da2x

Steps to reproduce:

echo -e "<body>inline<script>\n();</script></body>" | tidy -q

Test results:

<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body>
inline
<script>

();
</script>
</body>
</html>

Issue doesn’t happen when the element is’t inlined:

echo -e "<body><script>\n();</script></body>" | tidy -q

Test results:

<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body>
<script>
();
</script>
</body>
</html>

Version: HTML Tidy for Linux version 5.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions