This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Open
Conversation
They're locale-dependent, whereas HTML parsing is locale-agnostic.
Contributor
|
Should isspace include \v the vertical tab, since that is part of isspace in the C locale and it is typically included as whitespace? Or is this character explicitly excluded in the whatwg spec |
Contributor
|
FWIW, Checked both the w3c and whatwg spec and whitespace characters for the purposes of the spec do NOT include the vertical tab \v char. |
c1710e5 to
ab7c451
Compare
Contributor
|
Agreed.
If you are looking to a simpler set of patches without all of the whitespace changes, you may want to look at:
https://github.com/kevinhendricks/gumbo-parser/commits/updated
The last couple commits on this branch are my attempt to pull all critical bug fixes into one place ("updated") except for the out-of-memory changes as they change the parser structure size and thus the abi.
For out-of-memory, I think your approach of aborting in your own malloc is probably the safest approach. What use is a null or partial tree given we do not know how partial it may be? So I would rather have it abort.
Feel free to grab whatever you need as these are simply modifications of current pull requests along with a few other fixes we have discussed before.
… On Oct 12, 2017, at 8:17 AM, Craig Barnes ***@***.***> wrote:
50,000 line diffs for 20 line bug fixes considered harmful...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
They're locale-dependent, whereas HTML parsing is locale-agnostic.