W3cubDocs

/Nokogiri

module Nokogiri::CSS::XPathVisitor::DoctypeConfig

Enum to direct XPathVisitor when to tweak the XPath query to suit the nature of the document being searched. Note that searches for CSS selectors from a Nokogiri document, fragment, or node will choose the correct option automatically.

Constants

HTML4

The document being searched is an HTML4 document.

HTML5

The document being searched is an HTML5 document.

XML

The document being searched is an XML document. This is the default.

© 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.
https://nokogiri.org/rdoc/Nokogiri/CSS/XPathVisitor/DoctypeConfig.html