Add boolean option :include_inputs to Floki.text/2 that changes the result
of this function to include the values of inputs. So if there is any input with
a "value" attribute, we now include that value if this option is set to true.
Thanks @viniciusmuller.
Fixed
Fix find of elements by classes that contain colons. This is useful for when
people are trying to find elements that contain Tailwind classes.
Thanks @viniciusmuller.
Fix some typespecs that were using types from private modules. This is a fix
to the documentation.
[0.34.2] - 2023-02-24
Added
Add option to pass down arguments to the parser in Floki.parse_document/2 and
Floki.parse_fragment/2. Thanks @Kuret.
Add support for returning more elements from the Floki.traverse_and_update/2 function callback.
This enables the creation of more elements in the tree, but should be used with care,
since the tree can grow a lot if the change is not controlled. Thanks @martosaur.
[0.34.1] - 2023-02-11
Fixed
Fix pseudo-class ":not" selector parsing halting point.
This is a fix for when a "pseudo-class" ":not" that contains an attribute selector is
followed by another selector. This is an example: "a:not([class]), div".
Ignore decimal numeric char ref when number is negative.
[0.34.0] - 2022-11-03
Added
User configurable "self-closing" tags. Now it's possible to define which tags are considered
"self-closing". Thanks @inoas.
Fixed
Allow attribute values to not be escaped. This fixes Floki.raw_html/2 when used with the
option encode: false. Thanks @juanazam.
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps floki from 0.32.1 to 0.34.3.
Release notes
Sourced from floki's releases.
... (truncated)
Changelog
Sourced from floki's changelog.
... (truncated)
Commits
fc07c14
Release v0.34.3c8850a7
Improve Floki.text/2 by using IO datadcacade
Test against OTP 26ac13707
Fix class selector with colon (#464)7998d89
Bump html5ever from 0.14.2 to 0.14.3 (#461)34fb89a
Addinclude_inputs?
option to Floki.text (#459)07bb4cc
Bump html5ever from 0.14.0 to 0.14.2 (#460)46e8cc8
Parse escaped colons in class names correctly (#458)0a08a8e
Bump credo from 1.6.7 to 1.7.0 (#453)8335bdc
Bump dialyxir from 1.2.0 to 1.3.0 (#455)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)