module Nokogiri::CSS

Public Class Methods

parse(selector) Show source

Parse this CSS selector in selector. Returns an AST.

# File lib/nokogiri/css.rb, line 16
def parse selector
  Parser.new.parse selector
xpath_for(selector, options={}) Show source

Get the XPath for selector.

# File lib/nokogiri/css.rb, line 22
def xpath_for selector, options={}
  Parser.new(options[:ns] || {}).xpath_for selector, options

© 2008–2017 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo
Patrick Mahoney, Yoko Harada, Akinori Musha, John Shahid
Licensed under the MIT License.