Conditional tags are converted to conditional comments (nuget version 0.9.9)
See original GitHub issueHello,
when conditional tags are parsed, they are converted to conditional comments.
var source = "<![if IE]> if-IE comment revealed <![endif]>";
var doc = parser.Parse(source);
var out = doc.ToHtml();
out == "<!--[if IE]--> if-IE comment revealed <!--[endif]-->";
see About conditional comments
I do not think this should happen. Alexander.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Creating a conditional NuGet package
Can our NuGet package have some sort of conditional behaviour, i.e. if its a VB.Net project add the AppStart class in VB.Net and...
Read more >Target-typed conditional expression - C# 9.0 draft feature ...
we define a new implicit conditional expression conversion that permits an implicit conversion from the conditional expression to any type T ...
Read more >Full ChangeLog | BenchmarkDotNet
#290 Question: Any official way to benchmark same method between different assembly versions? #931 Same NuGet version used when benchmarking different packages ...
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:259848 - "new package request sci-biology/gap2caf: convert from gap4 file format to consed" status:RESOLVED resolution:OBSOLETE severity:enhancement ...
Read more >Conditional comments - CSS
If you have multiple IEs installed on one system the conditional comments will view each install as the highest installed version.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sharing the code that I used to delete the conditional comments… thanks
Hi, I’m running into this same issue. Unfortunately, if the document forces IE compatibility to an old version you actually get incorrect display in IE. The code below illustrates the problem (you need to save the result in a file and open in IE). I’ll try the recommendation to remove the nodes through the tree walker, and will post the code for that: