IE conditional comments flagged as invalid


#1

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


#2

HTML doesn’t support nested comments to my understanding:

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


#3

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.