Skip to content
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

Add parse functions that return attributes as maps #91

Merged
merged 6 commits into from
Jun 16, 2023

Conversation

philss
Copy link
Member

@philss philss commented Jun 14, 2023

This is in line with Floki's new feature, that was introduced in philss/floki#467

The initial idea is from philss/floki#463

PS: this removes some unused code, adds thiserror as dependency, and refactor a little bit the code.

This is in line with Floki's new feature, that was
introduced in philss/floki#467

The initial idea is from philss/floki#463
@philss philss requested a review from hansihe June 14, 2023 22:58
end

defp parse_dirty(html) do
case Html5ever.Native.parse_sync(html) do
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason we were calling the parse_sync function here. This may be a performance issue today.

@philss
Copy link
Member Author

philss commented Jun 16, 2023

I'm happy with this, so I'm going to merge. Please let me know if you find anything.

@philss philss merged commit 3209283 into master Jun 16, 2023
@philss philss deleted the ps-add-option-to-have-attrs-as-maps branch June 16, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant