Module: Nokogiri::CSS::XPathVisitor::DoctypeConfig
| Relationships & Source Files | |
| Defined in: | lib/nokogiri/css/xpath_visitor.rb |
Overview
Enum to direct ::Nokogiri::CSS::XPathVisitor when to tweak the XPath query to suit the nature of the document being searched. Note that searches for ::Nokogiri::CSS selectors from a ::Nokogiri document, fragment, or node will choose the correct option automatically.
Constant Summary
-
HTML4 =
# File 'lib/nokogiri/css/xpath_visitor.rb', line 38
The document being searched is an
HTML4document.:html4
-
HTML5 =
# File 'lib/nokogiri/css/xpath_visitor.rb', line 41
The document being searched is an
HTML5document.:html5
-
VALUES =
Internal use only
# File 'lib/nokogiri/css/xpath_visitor.rb', line 44
array of values for validation
[XML, HTML4, HTML5]
-
XML =
# File 'lib/nokogiri/css/xpath_visitor.rb', line 35
The document being searched is an
XMLdocument. This is the default.:xml