-
-
Notifications
You must be signed in to change notification settings - Fork 324
Use LXML for html_to_vdom #795
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
Archmonger
merged 54 commits into
reactive-python:main
from
Archmonger:fix-html-to-vdom
Aug 14, 2022
Merged
Changes from 51 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
43dec3b
LXML based html_to_vdom
Archmonger f0a3220
better interface for html_to_vdom
Archmonger c6ad8bf
cleanup typehints and exceptions
Archmonger a2d995a
variable and function name cleanup
Archmonger 4dfde93
fix tests
Archmonger e5fdfc3
fix more tests
Archmonger f3925cb
fix transform logic
Archmonger 8156e28
fix test warnings
Archmonger 4600af4
rename to _prune_vdom_fields
Archmonger 88c14c5
make safe assumption in _vdom_mutations
Archmonger 32c5db7
docstrings
Archmonger 55d5d13
switch back to function based approach
Archmonger 13c7f8a
better function names
Archmonger e56523c
perform _generate_vdom_children in a single pass
Archmonger 0924c5f
add changelog entry
Archmonger f9f169a
add null tag test
Archmonger 4c40afc
more robust style string parser
Archmonger e5ca858
fix tests
Archmonger 37b2019
remove uneeded strip
Archmonger 64c6515
root_node position cleanup
Archmonger c7bc8ed
user API only accepts str
Archmonger 4d0c03c
etree_to_vdom
Archmonger 3f7b78e
Try to use existing root node
Archmonger d448102
test_html_to_vdom_with_no_parent_node
Archmonger 2813de1
more compact formatting for tests
Archmonger bedab56
remove non-html from VDOM tree
Archmonger dcb3789
Allow for customizing whether the parser is strict
Archmonger e464277
make etree to vdom private
Archmonger 0ddf937
Remove recover parameter
Archmonger f70cfc5
Update src/idom/utils.py
Archmonger e46e1fc
Update src/idom/utils.py
Archmonger 2396169
Update src/idom/utils.py
Archmonger 873a048
hasattr(idom.html, tagName)
Archmonger 3bb5df0
fix tests
Archmonger 9c69569
avoid unneeded list unpacking
Archmonger 63acce6
more comments
Archmonger 86fd44d
better _hypen_to_camel_case
Archmonger 43998bd
Revert "better _hypen_to_camel_case"
Archmonger 501e14c
use `TEMP` instead of `div` for root node
Archmonger 40e073e
ignore coverage on type checks
Archmonger bde14c1
Merge branch 'fix-html-to-vdom' of https://github.com/Archmonger/idom…
Archmonger dd23e88
Update src/idom/utils.py
Archmonger 5aefd37
remove prune vdom fields
Archmonger bf37464
type hints
Archmonger 40116c7
_hypen_to_camel_case using string partition
Archmonger 3999aad
fix _ModelTransform def
Archmonger c52791a
TypeError string update
Archmonger 4ca1f11
Convince type checker that it's safe to mutate attributes
Archmonger cf532f9
test non html element behavior
rmorshea 9262c15
remove recover=False
Archmonger 1a23a01
Add strict parameter
Archmonger 07b3470
add type hint
rmorshea fef1844
Update src/idom/utils.py
Archmonger 66846ec
clearer verbiage
Archmonger 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ fastjsonschema >=2.14.5 | |
requests >=2 | ||
colorlog >=6 | ||
asgiref >=3 | ||
lxml >= 4 |
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
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.
Uh oh!
There was an error while loading. Please reload this page.