---
title: "nokogumbo 2.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each nokogumbo release removed, renamed or changed: 7 breaking changes in 1 version on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/nokogumbo
last_updated: 2026-12-04
---

# nokogumbo breaking changes

nokogumbo 2.0.0 (October 4, 2018) is its newest release with breaking changes, 7 of them. The first: Renamed :max_parse_errors. Every breaking API change we have recorded in nokogumbo on RubyGems: 7 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.0.5`. [Source repository](https://github.com/rubys/nokogumbo)

Its 2.0.0 release requires Ruby 2.1 or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

## nokogumbo 2.0.0 breaking changes

nokogumbo 2.0.0, released October 4, 2018: 7 breaking changes.

- **Renamed** `:max_parse_errors`  

The max_parse_errors option was renamed to max_errors. Code that passes max_parse_errors should switch to max_errors. [github.com](https://github.com/rubys/nokogumbo/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed** `Nokogiri.HTML5`  

The parse and fragment methods now return Nokogiri::HTML5::Document and Nokogiri::HTML5::DocumentFragment instead of the Nokogiri::HTML classes. Code that checks for the old classes must be updated. [github.com](https://github.com/rubys/nokogumbo/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed** `Nokogiri.HTML5.Document.to_xml`  

Calling to_xml on a Nokogiri::HTML5::Document now produces XML output instead of HTML. Code that expects HTML from to_xml must change. [github.com](https://github.com/rubys/nokogumbo/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed** `Nokogiri.HTML5.DocumentFragment.errors`  

DocumentFragment#errors returns errors for the fragment rather than the underlying document. Code that reads errors from a fragment may see different results. [github.com](https://github.com/rubys/nokogumbo/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed** `xpath`  

Foreign SVG, MathML and other namespaces are now supported, so elements and xml:lang attributes get different namespaces. XPath queries and related APIs may return different results. [github.com](https://github.com/rubys/nokogumbo/blob/v2.0.0/CHANGELOG.md)
- **Configuration changed**  

The minimum supported Ruby version is now 2.1. Older Ruby versions are no longer supported. [github.com](https://github.com/rubys/nokogumbo/blob/v2.0.0/CHANGELOG.md)
- **Configuration changed**  

The minimum supported Nokogiri version is now 1.8.0. Projects pinned to older Nokogiri versions must upgrade. [github.com](https://github.com/rubys/nokogumbo/blob/v2.0.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
