# File lib/nokogiri/css.rb, line 16 def parse selector Parser.new.parse selector end
Parse this CSS
selector in selector
. Returns an AST.
# File lib/nokogiri/css.rb, line 22 def xpath_for selector, options={} Parser.new(options[:ns] || {}).xpath_for selector, options end
Get the XPath for selector
.
© 2008–2018 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,
Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis
Licensed under the MIT License.