Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Markup errors not reported #67

Closed
gkellogg opened this issue Feb 10, 2018 · 2 comments
Closed

Markup errors not reported #67

gkellogg opened this issue Feb 10, 2018 · 2 comments

Comments

@gkellogg
Copy link

Prior to 1.5 (e.g., 1.4.13), Nokogumbo would report markup errors such as the following:

doc = Nokogiri::HTML5.parse('<!DOCTYPE html> <html')
doc.errors #==> [#<Nokogiri::XML::SyntaxError: 1:22: ERROR: @1:22: Tokenizer error with an unimplemented error message.
<!DOCTYPE html> <html
                     ^>] 

With 1.5, this error is no longer reported. Most likely due to a change in Gumbo, but unfortunate.

@rubys
Copy link
Owner

rubys commented Feb 10, 2018

Try:

doc = Nokogiri::HTML5.parse('<!DOCTYPE html> <html', max_parse_errors: 100)

See: #65

@gkellogg
Copy link
Author

Thanks, that did it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants