`no-conditional-comment` does not generate selector
Provide a broad description of the bug.
Reduced test-case
<!--[if !IE]><!-->
<link rel="stylesheet" type="text/css" media="all" href="ie.css" />
<!--<![endif]-->
Configuration
Default configuration
Expected result
An error with selector
set to the parent node.
Actual result
$ npm exec html-validate test3.html -- -f json | python -m json.tool
[
{
"filePath": "C:\\FKApps\\repo\\tmpl_ansok_hundbidrag_sp\\test3.html",
"messages": [
{
"ruleId": "no-conditional-comment",
"ruleUrl": "https://html-validate.org/rules/no-conditional-comment.html",
"severity": 2,
"message": "Use of conditional comments are deprecated",
"offset": 0,
"line": 1,
"column": 1,
"size": 13,
"selector": null
},
{
"ruleId": "no-conditional-comment",
"ruleUrl": "https://html-validate.org/rules/no-conditional-comment.html",
"severity": 2,
"message": "Use of conditional comments are deprecated",
"offset": 91,
"line": 3,
"column": 5,
"size": 12,
"selector": null
}
],
"errorCount": 2,
"warningCount": 0,
"source": "<!--[if !IE]><!-->\n<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"ie.css\" />\n<!--<![endif]-->\n"
}
]
Version
-
html-validate
:6.3.1