IE conditional comments flagged as invalid


I noticed that conditional comments are bring scoped as
invalid illegal bad-comments-or-CDATA html


HTML doesn’t support nested comments to my understanding:

So I think this behavior is correct even if against some edge case conventions?


Yes, it might not be “correct” but “conditional IE comments” are pretty standard.

If you are using a usemin Gulp or Grunt task, then you would use the second level of comments too.