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

fix #776: css skip BOM #778

Closed
wants to merge 2 commits into from
Closed

fix #776: css skip BOM #778

wants to merge 2 commits into from

Conversation

susiwen8
Copy link
Contributor

@susiwen8 susiwen8 commented Feb 9, 2021

Close #776

Logic in printWithEscape for escaping BOM is not right. it has already written \feff before escape.

Add a addition isEscapeBom params for BOM

@evanw
Copy link
Owner

evanw commented Feb 10, 2021

Sorry, this isn't the correct fix. The problem is that it's being parsed in the first place, not that the U+FEFF character needs to be omitted from the incorrectly-parsed CSS. This should be fixed in the parser instead. I'm going to close this since I have a fix for the parser.

@evanw evanw closed this Feb 10, 2021
@susiwen8 susiwen8 deleted the css-bom branch February 10, 2021 12:35
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

Successfully merging this pull request may close these issues.

Skip over a leading BOM in CSS files
2 participants