Skip to content

Commit

Permalink
Rename Nokogiri::HTML module to Nokogiri::HTML4
Browse files Browse the repository at this point in the history
Starting version 1.20.0 the module name changed and the old
name is aliased to preserve backwards-compatibility.
This might be deprecated in future versions, so better
change it right away.

See https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md#1120--2021-08-02
  • Loading branch information
krauselukas committed Aug 6, 2021
1 parent a8a8ca3 commit 4753540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/test/functional/webui/spider_test.rb
Expand Up @@ -111,7 +111,7 @@ def crawl
end
body = nil
begin
body = Nokogiri::HTML::Document.parse(page.source).root
body = Nokogiri::HTML4::Document.parse(page.source).root
rescue Nokogiri::XML::SyntaxError
# puts "HARDCORE!! #{theone}"
end
Expand Down

0 comments on commit 4753540

Please sign in to comment.