Module: Nokogiri::HTML5::Inference::ContextRegexp

Defined in:
lib/nokogiri/html5/inference.rb

Overview

Regular expressions used to determine if we need to use a context node.

Constant Summary collapse

DOCUMENT =

:nodoc:

/\A\s*(<!doctype\s+html\b|<html\b)/i
HTML =
/\A\s*<(#{ContextTags::HTML.join("|")})\b/i