Class Nokogiri::CSS::Parser
In: lib/nokogiri/css/parser_extras.rb
lib/nokogiri/css/parser.rb
Parent: Racc::Parser

Methods

Constants

Racc_arg = [ racc_action_table, racc_action_check, racc_action_default, racc_action_pointer, racc_goto_table, racc_goto_check, racc_goto_default, racc_goto_pointer, racc_nt_base, racc_reduce_table, racc_token_table, racc_shift_n, racc_reduce_n, racc_use_result_var ]
Racc_token_to_s_table = [ "$end", "error", "FUNCTION", "INCLUDES", "DASHMATCH", "LBRACE", "HASH", "PLUS", "GREATER", "S", "STRING", "IDENT", "COMMA", "NUMBER", "PREFIXMATCH", "SUFFIXMATCH", "SUBSTRINGMATCH", "TILDE", "NOT_EQUAL", "SLASH", "DOUBLESLASH", "NOT", "EQUAL", "RPAREN", "LSQUARE", "RSQUARE", "HAS", "\".\"", "\"*\"", "\"|\"", "\":\"", "$start", "selector", "simple_selector_1toN", "prefixless_combinator_selector", "combinator", "simple_selector", "element_name", "hcap_0toN", "hcap_1toN", "negation", "function", "pseudo", "attrib", "class", "namespaced_ident", "namespace", "attrib_name", "attrib_val_0or1", "expr", "an_plus_b", "attribute_id", "eql_incl_dash", "negation_arg" ]
Racc_debug_parser = false

External Aliases

cache_on -> cache_on?
cache_on= -> set_cache

Attributes

cache_on  [RW]  Turn on CSS parse caching

Public Class methods

Get the css selector in string from the cache

Set the css selector in string in the cache to value

Clear the cache

Create a new CSS parser with respect to namespaces

Parse this CSS selector in selector. Returns an AST.

Execute block without cache

Public Instance methods

On CSS parser error, raise an exception

Get the xpath for string using options

[Validate]