Export to GitHub

htmlcompressor - issue #9

Html commentc like "<!--//-->"


Posted on Feb 19, 2010 by Massive Rhino

Hi.

Sometimes I using html comment to get w3c valid constuction like:

<someTag><!--//--></someTag>

But if I remove all html comments I get validator error.

Is it possible add some rule for this?

Thanks.

Comment #1

Posted on Feb 19, 2010 by Grumpy Hippo

Do you suggest not removing constructions? I don't think it is a good idea, it is not something html compressor is expected to do imo. Can you please provide exact code sample that will not be validated without a comment? By the way IE conditional comments are preserved, so something like should be enough to keep the comment.

Comment #2

Posted on Mar 31, 2010 by Grumpy Hippo

(No comment was entered for this change.)

Comment #3

Posted on Aug 28, 2010 by Grumpy Hippo

Custom preservation rules were added in 0.9.2, so now you can make those comments preserved.

Status: Fixed

Labels:
Type-Defect Priority-Medium