Packages
floki
0.33.1
0.38.4
0.38.3
0.38.2
0.38.1
0.38.0
0.37.1
0.37.0
0.36.3
0.36.2
0.36.1
0.36.0
0.35.4
0.35.3
0.35.2
0.35.1
0.35.0
0.34.3
0.34.2
0.34.1
0.34.0
0.33.1
0.33.0
0.32.1
0.32.0
0.31.0
0.30.1
0.30.0
0.29.0
0.28.0
0.27.0
0.26.0
0.25.0
0.24.0
0.23.1
0.23.0
0.22.0
0.21.0
0.20.4
0.20.3
0.20.2
0.20.1
0.20.0
0.19.3
0.19.2
0.19.1
0.19.0
0.18.1
0.18.0
0.17.2
0.17.1
0.17.0
0.16.0
0.15.0
0.14.0
0.13.2
0.13.1
0.13.0
0.12.1
0.12.0
0.11.0
0.10.1
0.10.0
0.9.0
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.0
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Floki is a simple HTML parser that enables search for nodes using CSS selectors.
Current section
86 Versions
Jump to
Current section
86 Versions
Compare versions
5
files changed
+30
additions
-26
deletions
| @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. | |
| 7 7 | |
| 8 8 | ## [Unreleased][unreleased] |
| 9 9 | |
| 10 | + ## [0.33.1] - 2022-06-28 |
| 11 | + |
| 12 | + ### Fixed |
| 13 | + |
| 14 | + - Remove some warnings for unused code. |
| 15 | + |
| 10 16 | ## [0.33.0] - 2022-06-28 |
| 11 17 | |
| 12 18 | ### Added |
| @@ -608,7 +614,8 @@ of the parent element inside HTML. | |
| 608 614 | |
| 609 615 | - Elixir version requirement from "~> 1.0.0" to ">= 1.0.0". |
| 610 616 | |
| 611 | - [unreleased]: https://github.com/philss/floki/compare/v0.33.0...HEAD |
| 617 | + [unreleased]: https://github.com/philss/floki/compare/v0.33.1...HEAD |
| 618 | + [0.33.1]: https://github.com/philss/floki/compare/v0.33.0...v0.33.1 |
| 612 619 | [0.33.0]: https://github.com/philss/floki/compare/v0.32.1...v0.33.0 |
| 613 620 | [0.32.1]: https://github.com/philss/floki/compare/v0.32.0...v0.32.1 |
| 614 621 | [0.32.0]: https://github.com/philss/floki/compare/v0.31.0...v0.32.0 |
| @@ -9,7 +9,7 @@ | |
| 9 9 | |
| 10 10 | **Floki is a simple HTML parser that enables search for nodes using CSS selectors**. |
| 11 11 | |
| 12 | - [Check the documentation](https://hexdocs.pm/floki). |
| 12 | + [Check the documentation 📙](https://hexdocs.pm/floki). |
| 13 13 | |
| 14 14 | ## Usage |
| 15 15 | |
| @@ -112,10 +112,8 @@ Extracting the files is needed only once. | |
| 112 112 | |
| 113 113 | #### Using `html5ever` as the HTML parser |
| 114 114 | |
| 115 | - Rust needs to be installed on the system in order to compile html5ever. To do that, please |
| 116 | - [follow the instruction](https://www.rust-lang.org/en-US/install.html) presented in the official page. |
| 117 | - |
| 118 | - After Rust is set up, you need to add `html5ever` NIF to your dependency list: |
| 115 | + This dependency is written with a NIF using [Rustler](https://github.com/rusterlium/rustler), but |
| 116 | + you don't need to install anything to compile it thanks to [RustlerPrecompiled](https://hexdocs.pm/rustler_precompiled/). |
| 119 117 | |
| 120 118 | ```elixir |
| 121 119 | defp deps do |
| @@ -29,8 +29,7 @@ | |
| 29 29 | {<<"links">>, |
| 30 30 | [{<<"Changelog">>,<<"https://hexdocs.pm/floki/changelog.html">>}, |
| 31 31 | {<<"GitHub">>,<<"https://github.com/philss/floki">>}, |
| 32 | - {<<"Sponsor">>, |
| 33 | - <<"https://www.paypal.com/donate?business=EMDBKWVHVEB7Q¤cy_code=USD">>}]}. |
| 32 | + {<<"Sponsor">>,<<"https://github.com/sponsors/philss">>}]}. |
| 34 33 | {<<"name">>,<<"floki">>}. |
| 35 34 | {<<"requirements">>, |
| 36 35 | [[{<<"app">>,<<"html_entities">>}, |
| @@ -38,4 +37,4 @@ | |
| 38 37 | {<<"optional">>,false}, |
| 39 38 | {<<"repository">>,<<"hexpm">>}, |
| 40 39 | {<<"requirement">>,<<"~> 0.5.0">>}]]}. |
| 41 | - {<<"version">>,<<"0.33.0">>}. |
| 40 | + {<<"version">>,<<"0.33.1">>}. |
| @@ -764,19 +764,19 @@ defmodule Floki.HTML.Tokenizer do | |
| 764 764 | |
| 765 765 | # § tokenizer-script-data-escape-start-dash-state |
| 766 766 | |
| 767 | - defp script_data_escape_start_dash(<<?-, html::binary>>, s) do |
| 768 | - script_data_escaped_dash_dash( |
| 769 | - html, |
| 770 | - %{ |
| 771 | - s |
| 772 | - | tokens: append_char_token(s, @hyphen_minus) |
| 773 | - } |
| 774 | - ) |
| 775 | - end |
| 767 | + # defp script_data_escape_start_dash(<<?-, html::binary>>, s) do |
| 768 | + # script_data_escaped_dash_dash( |
| 769 | + # html, |
| 770 | + # %{ |
| 771 | + # s |
| 772 | + # | tokens: append_char_token(s, @hyphen_minus) |
| 773 | + # } |
| 774 | + # ) |
| 775 | + # end |
| 776 776 | |
| 777 | - defp script_data_escape_start_dash(html, s) do |
| 778 | - script_data(html, s) |
| 779 | - end |
| 777 | + # defp script_data_escape_start_dash(html, s) do |
| 778 | + # script_data(html, s) |
| 779 | + # end |
| 780 780 | |
| 781 781 | # § tokenizer-script-data-escaped-state |
| 782 782 | |
| @@ -1741,7 +1741,7 @@ defmodule Floki.HTML.Tokenizer do | |
| 1741 1741 | end |
| 1742 1742 | |
| 1743 1743 | defp comment_end(html, s) do |
| 1744 | - new_comment = %Comment{s.token | data: [s.token.data | "--"]} |
| 1744 | + new_comment = %Comment{s.token | data: [s.token.data | ["--"]]} |
| 1745 1745 | |
| 1746 1746 | comment(html, %{s | token: new_comment}) |
| 1747 1747 | end |
| @@ -1749,7 +1749,7 @@ defmodule Floki.HTML.Tokenizer do | |
| 1749 1749 | # § tokenizer-comment-end-bang-state |
| 1750 1750 | |
| 1751 1751 | defp comment_end_bang(<<?-, html::binary>>, s) do |
| 1752 | - new_comment = %Comment{s.token | data: [s.token.data | "--!"]} |
| 1752 | + new_comment = %Comment{s.token | data: [s.token.data | ["--!"]]} |
| 1753 1753 | |
| 1754 1754 | comment_end_dash(html, %{s | token: new_comment}) |
| 1755 1755 | end |
| @@ -1773,7 +1773,7 @@ defmodule Floki.HTML.Tokenizer do | |
| 1773 1773 | end |
| 1774 1774 | |
| 1775 1775 | defp comment_end_bang(html, s) do |
| 1776 | - new_comment = %Comment{s.token | data: [s.token.data | "--!"]} |
| 1776 | + new_comment = %Comment{s.token | data: [s.token.data | ["--!"]]} |
| 1777 1777 | |
| 1778 1778 | comment(html, %{s | token: new_comment}) |
| 1779 1779 | end |
| @@ -3,7 +3,7 @@ defmodule Floki.Mixfile do | |
| 3 3 | |
| 4 4 | @description "Floki is a simple HTML parser that enables search for nodes using CSS selectors." |
| 5 5 | @source_url "https://github.com/philss/floki" |
| 6 | - @version "0.33.0" |
| 6 | + @version "0.33.1" |
| 7 7 | |
| 8 8 | def project do |
| 9 9 | [ |
| @@ -120,7 +120,7 @@ defmodule Floki.Mixfile do | |
| 120 120 | ], |
| 121 121 | links: %{ |
| 122 122 | "Changelog" => "https://hexdocs.pm/floki/changelog.html", |
| 123 | - "Sponsor" => "https://www.paypal.com/donate?business=EMDBKWVHVEB7Q¤cy_code=USD", |
| 123 | + "Sponsor" => "https://github.com/sponsors/philss", |
| 124 124 | "GitHub" => @source_url |
| 125 125 | } |
| 126 126 | } |