From 2bb008482a22d566f189462c6e1bbd1976177adf Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 9 Jul 2021 15:33:20 -0400 Subject: [PATCH] docs: small edits to the HTML5 docs. --- lib/nokogiri/html5.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/nokogiri/html5.rb b/lib/nokogiri/html5.rb index c76b4a6d4cb..86b4bba717a 100644 --- a/lib/nokogiri/html5.rb +++ b/lib/nokogiri/html5.rb @@ -53,9 +53,9 @@ def self.HTML5(input, url = nil, encoding = nil, **options, &block) # # === Error reporting # - # Nokogumbo contains an experimental parse error reporting facility. By default, no parse errors - # are reported but this can be configured by passing the +:max_errors+ option to {HTML5.parse} or - # {HTML5.fragment}. + # Nokogiri contains an experimental HTML5 parse error reporting facility. By default, no parse + # errors are reported but this can be configured by passing the +:max_errors+ option to + # {HTML5.parse} or {HTML5.fragment}. # # For example, this script: # @@ -88,7 +88,7 @@ def self.HTML5(input, url = nil, encoding = nil, **options, &block) # parsing HTML. The parse errors in the "tree construction" stage do not have standardized error # codes (yet). # - # As a convenience to Nokogumbo users, the defined error codes are available via + # As a convenience to Nokogiri users, the defined error codes are available via # {Nokogiri::XML::SyntaxError#str1} method. # # doc = Nokogiri::HTML5.parse('Hi there!', max_errors: 10) @@ -104,7 +104,7 @@ def self.HTML5(input, url = nil, encoding = nil, **options, &block) # stage and doesn't have a standardized error code. # # For the purposes of semantic versioning, the error messages, error locations, and error codes - # are not part of Nokogumbo's public API. That is, these are subject to change without Nokogumbo's + # are not part of Nokogiri's public API. That is, these are subject to change without Nokogiri's # major version number changing. These may be stabilized in the future. # # === Maximum tree depth @@ -113,8 +113,8 @@ def self.HTML5(input, url = nil, encoding = nil, **options, &block) # +:max_tree_depth+ option. If the depth of the tree would exceed this limit, then an # {::ArgumentError} is thrown. # - # This limit (which defaults to Nokogumbo::DEFAULT_MAX_TREE_DEPTH = 400) can be removed - # by giving the option max_tree_depth: -1. + # This limit (which defaults to Nokogiri::Gumbo::DEFAULT_MAX_TREE_DEPTH = 400) can be + # removed by giving the option max_tree_depth: -1. # # html = '' + '
' * 1000 # doc = Nokogiri.HTML5(html) @@ -126,8 +126,8 @@ def self.HTML5(input, url = nil, encoding = nil, **options, &block) # The maximum number of attributes per DOM element is configurable by the +:max_attributes+ # option. If a given element would exceed this limit, then an {::ArgumentError} is thrown. # - # This limit (which defaults to Nokogumbo::DEFAULT_MAX_ATTRIBUTES = 400) can be removed - # by giving the option max_attributes: -1. + # This limit (which defaults to Nokogiri::Gumbo::DEFAULT_MAX_ATTRIBUTES = 400) can be + # removed by giving the option max_attributes: -1. # # html = '
' # # "
" @@ -182,7 +182,7 @@ def self.HTML5(input, url = nil, encoding = nil, **options, &block) # # == Encodings # - # Nokogumbo always parses HTML using {https://en.wikipedia.org/wiki/UTF-8 UTF-8}; however, the + # Nokogiri always parses HTML5 using {https://en.wikipedia.org/wiki/UTF-8 UTF-8}; however, the # encoding of the input can be explicitly selected via the optional +encoding+ parameter. This is # most useful when the input comes not from a string but from an IO object. #