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

Chokes on certain CSS files #293

Open
EGreg opened this issue Dec 22, 2024 · 0 comments
Open

Chokes on certain CSS files #293

EGreg opened this issue Dec 22, 2024 · 0 comments

Comments

@EGreg
Copy link

EGreg commented Dec 22, 2024

How to reproduce: Try putting this in your document:

<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,700);
</style>

the eatUntil() function throws "Advanced beyond end" because it doesn't find { anywhere, and as a result, the whole library aborts.

You should handle edge cases like this. Perhaps don't throw "Advanced beyond end" since "{" might not actually exist in the CSS

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

1 participant