You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Filter.ExtractStyleBlocks to extract CSS style blocks, HTML conditional comments are removed, which leads to wrong looking HTML. I have this example code:
<head>
<style>
div {display: none;}
</style>
<!--[if IE 6]>
<style>
div {display: block;}
</style>
<![endif]-->
</head>
<body>
<div>hi</div>
</body>
</html>```
In this case, the link should only be shown in IE 6.
The output of HTML is the following, which is correct:
<div>hi</div>
The corresponding CSS style blocks look like this:
``` array(2) {
[0] =>
string(18) "div {
display:none
}"
[1] =>
string(19) "div {
display:block
}"
}
The information about the IE6 is gone, if I output both style blocks on the website, the div is always shown, because the conditional comment is gone.
At the moment I don't have a good idea how to fix this, I hope someone of you has an idea. The information is important and should not be lost.
The text was updated successfully, but these errors were encountered:
When using Filter.ExtractStyleBlocks to extract CSS style blocks, HTML conditional comments are removed, which leads to wrong looking HTML. I have this example code:
The information about the IE6 is gone, if I output both style blocks on the website, the div is always shown, because the conditional comment is gone.
At the moment I don't have a good idea how to fix this, I hope someone of you has an idea. The information is important and should not be lost.
The text was updated successfully, but these errors were encountered: