Open
Description
<noscript>
has transparent content model so adding paragraph inside is just like adding paragraph directly inside the outer paragraph. <p>
elements cannot contain block elements like other paragraphs so tidy produces an invalid HTML:
$ echo '<p><noscript>test</noscript></p>' | result/bin/tidy --enclose-block-text yes
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 1 - Warning: inserting implicit <body>
line 1 column 1 - Warning: inserting missing 'title' element
Info: Document content looks like HTML5
Tidy found 3 warnings and 0 errors!
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.7.35">
<title></title>
</head>
<body>
<p><noscript>
<p>test</p>
</noscript></p>
</body>
</html>