Skip to content

Handle input with comments#14

Merged
madyankin merged 1 commit intomadyankin:masterfrom
dfreeman:handle-comments
Dec 21, 2015
Merged

Handle input with comments#14
madyankin merged 1 commit intomadyankin:masterfrom
dfreeman:handle-comments

Conversation

@dfreeman
Copy link
Copy Markdown
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
Copy Markdown
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