-
Notifications
You must be signed in to change notification settings - Fork 91
Added is_fragment parameter to the LexborHTMLParser constructor, allowing users to specify whether to parse input as a full HTML document or as a fragment!
#188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
add47af
Add `skip_empty` parameter to `text()` method in `LexborNode`
pygarap ed0622b
Add `with_top_level_tags` parameter to `LexborHTMLParser`
pygarap 9d22d77
Refactor `lxb_html_document_parse_fragment` implementation in `Lexbor…
pygarap d62e03b
Improve fragment error handling in `LexborHTMLParser`
pygarap fb3dcef
Improve handling of fragment parsing in `LexborHTMLParser`
pygarap caf04d2
Refactor `_parse_html` by delegating parsing logic to `_parse_with_to…
pygarap da4d224
Refactor and clean up `LexborHTMLParser` and related files
pygarap d8abd9d
Remove commented-out `_parse_html` method in `LexborHTMLParser` and a…
pygarap ecd6bdc
Reorganize `selector` property in `LexborHTMLParser` and improve form…
pygarap f2d9609
Add detailed docstrings to `LexborHTMLParser` methods and refine type…
pygarap 0c0c784
Clean up `lexbor.pyi` formatting and integrate `cython-lint` in Makefile
pygarap 79b79a1
Add detailed docstrings for HTML parsing methods in `lexbor.pyx`
pygarap 5ed6089
Add detailed docstrings for `__dealloc__` and `from_document` methods…
pygarap 4b03c8d
Improve formatting and spacing consistency across `lexbor.pxd`, `lexb…
pygarap 1f110cf
Clarify docstring for `with_top_level_tags` parameter in HTML parsing…
pygarap 530d53b
Merge branch 'master' into match_top_level_tags
rushter d95ac2e
Refactor: Rename `with_top_level_tags` to `is_fragment` in `LexborHTM…
pygarap 7fe547b
Refine docstring formatting for HTML parsing methods to improve reada…
pygarap 4506650
Fix `html` method logic by reordering fragment check for consistent b…
pygarap 4e9ce89
Improve formatting consistency in `lexbor.pxd`, `lexbor.pyx`, and `le…
pygarap b62036e
Add `skip_empty` parameter to `text` method and update docstring for …
pygarap 7c86f32
Minor edits
rushter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such formatting is intentional. Please avoid changing formatting everywhere. It makes it harder to review and keeps unrelated changes in the same commits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rushter Thanks for pointing this out.
I have reverted the formatting changes and kept this PR focused only on the relevant code changes. I will avoid broad formatting edits in future commits to make diffs more straightforward to review.