Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS comments gets removed #327

Open
pragatibaheti opened this issue Jan 18, 2022 · 1 comment
Open

CSS comments gets removed #327

pragatibaheti opened this issue Jan 18, 2022 · 1 comment

Comments

@pragatibaheti
Copy link

I want to preserve comments written in style tags also but I am not able to preserve them even though I am using RemovingComments event hook and canceling the event. It works fine in case of comments inside the body tag in HTML.

Here is the fiddle link https://dotnetfiddle.net/6H6bJe

@mganss
Copy link
Owner

mganss commented Jan 18, 2022

AngleSharp.Css does not keep comments in its object model after parsing. AFAICT this is in accordance with the CSSOM spec but I have opened an issue nonetheless: AngleSharp/AngleSharp.Css#99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants