This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose Gumbo parse errors to Nokogiri document.
Use the internal Gumbo error API to get error parse error information. Expose this to Ruby by crafting an array of `Nokogiri::XML::SyntaxError` objects filled in with a variety of information, including column and line information. These are stored in the document's `@errors` instance variable. Note that since the HTML state machine completely specifies what to do on every parse error, no error is fatal.
- Loading branch information
1 parent
1f8c668
commit eb59c58
Showing
2 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters