Parser: do not parse HTML tags from / content
HTML within <title> or <textarea> causes element-permitted-content to report about invalid nesting, but these elements' content is always interpreted as plain text.
This is not an issue with script or style—they represent verbatim text. For title and textarea, entities should still be interpreted, but not HTML tags.
Reduced test-case
<title>The <input> element</title>
Configuration
Use html-validate --print-config FILENAME or show the content of all relevant
.htmlvalidate.json files.
{
"rules": {
"element-permitted-content": "error"
}
}
Expected result
No error
Actual result
Error: <input> element is not permitted as content under <title>
Version
-
html-validate: 10.2.1 -
html-validate-angular: -
html-validate-vue: -
html-validate-protractor: . any other relevant plugin: