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

Deadweight#strip strips whitespace #28

Merged
merged 1 commit into from Dec 16, 2014

Conversation

jamesarosen
Copy link
Collaborator

Selectors like .foo ::-webkit-input-placeholder were causing Nokogiri to throw an exception. Specifically, Deadweight#strip would remove the ::-webkit-input-placeholder, leaving a trailing whitespace, which Nokogiri doesn't like.

The error message looks something like Nokogiri::CSS::SyntaxError: unexpected '$' after 'DESCENDANT_SELECTOR'.

Selectors like `.foo ::-webkit-input-placeholder` were causing
Nokogiri to throw an exception. Specifically,
`Deadweight#strip` would remove the `::-webkit-input-placeholder`,
leaving a trailing whitespace, which Nokogiri doesn't like.
jamesarosen added a commit that referenced this pull request Dec 16, 2014
Deadweight#strip strips whitespace
@jamesarosen jamesarosen merged commit beb4d6c into aanand:master Dec 16, 2014
@jamesarosen jamesarosen deleted the james-strip branch December 16, 2014 01:39
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.

None yet

1 participant