Download Latest Version v0.38.0 source code.tar.gz (498.4 kB)
Email in envelope

Get an email when there's a new version of Floki

Home / v0.38.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-06-15 2.6 kB
v0.38.0 source code.tar.gz 2025-06-15 498.4 kB
v0.38.0 source code.zip 2025-06-15 554.9 kB
Totals: 3 Items   1.1 MB 1

Added

  • This version adds initial support for the :has pseudo-selector. It is a great addition that enables finding elements containing matching children.

Examples for selectors:

  • "div:has(h1)"
  • "div:has(h1, p, span)"
  • "div:has(p.foo)"
  • "div:has(img[src='https://example.com'])"
  • "tr:has(*:fl-contains('TEST'))"

Note that combinators like ">" are not allowed yet.

Thank you @bvobart for this feature!

Fixed

  • Add :style option documentation to Floki.text/2. Thanks @s3cur3 for the fix.

  • Fix deprecation warnings for upcoming Elixir 1.19.

  • Prevent from crashing when selector is an empty string.

Removed

  • Remove support for Elixir 1.14 and OTP 23.

  • Remove deprecated functions and function clauses that were accepting strings (binaries).

Affected functions:

  • parse/1 - removed function
  • map/2 - removed function
  • attr/4 - removed clause
  • find/2 - removed clause
  • text/3 - removed clause
  • text/3 - removed clause
  • attribute/2 - removed clause
  • filter_out/2 - removed clause

Pull requests

New Contributors

Full Changelog: https://github.com/philss/floki/compare/v0.37.1...v0.38.0

Source: README.md, updated 2025-06-15