yarte icon indicating copy to clipboard operation
yarte copied to clipboard

Allow html Comments when using html-min

Open godofdream opened this issue 5 years ago • 3 comments

I'm getting a yarte (feature=["html-min"]) error for

<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

obviously this html comment is more than a simple html comment and should therefore work. error I'm getting: "No use html comment, use yarte comments instead"

Edit: Mentioning html-min feature

godofdream avatar Jun 15 '20 12:06 godofdream

Html5 parser is work is progress. Use without html minification.

I will consider these cases. Thanks for reporting, I leave it open to remember.

zzau13 avatar Jun 15 '20 15:06 zzau13

do you plan to use html5ever or do you want to fork it?

godofdream avatar Jun 16 '20 10:06 godofdream

I refork it :smile:. I need the clonable status of the tokenizer. And modify how it treats certain elements such as html attributes. Remove certain abstractions and dock it to a DOM.

zzau13 avatar Jun 16 '20 16:06 zzau13