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

Handle input with comments #14

Merged
merged 1 commit into from
Dec 21, 2015
Merged

Handle input with comments #14

merged 1 commit into from
Dec 21, 2015

Conversation

dfreeman
Copy link
Contributor

Many of the utilities assume that every CSS node has a selector, but this isn't the case when, e.g., the node represents a comment. Trying to process such files leads to TypeError: Cannot read property 'indexOf' of undefined.

This change introduces checks in situations where the selector needs to be defined, and adds a test case to ensure comments pass cleanly through.

@madyankin
Copy link
Owner

Thank you!

madyankin added a commit that referenced this pull request Dec 21, 2015
@madyankin madyankin merged commit 08a6df3 into madyankin:master Dec 21, 2015
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.

2 participants