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

css attribute conditionals can break #36

Closed
tenderlove opened this issue May 7, 2009 · 1 comment
Closed

css attribute conditionals can break #36

tenderlove opened this issue May 7, 2009 · 1 comment

Comments

@tenderlove
Copy link
Member

require 'nokogiri'
require 'open-uri'

url = 'http://www.google.com/advanced_search?hl=en'
doc = Nokogiri.parse( open(url).read )

list = [
 'input[@name^="as_"]',  # okay
 'input[@name^= "as_"]', # error
 'input[@name ^="as_"]', # error
 'input[@name ^= "as_"]' # error
]

list.each do | css |
 begin
   doc.search( css )
   puts "#{css} - okay"
 rescue StandardError => e
   puts "#{css} - #{e.message}"
 end
end
@tenderlove
Copy link
Member Author

making the parser return normalized strings. closed by 21c3478

flavorjones pushed a commit that referenced this issue Apr 7, 2021
copy shared object to lib directory
This issue was closed.
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