Open
Description
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