Skip to content

Commit

Permalink
Release v0.35.1
Browse files Browse the repository at this point in the history
  • Loading branch information
philss committed Oct 16, 2023
1 parent e338c8d commit 00c2234
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased][unreleased]

## [0.35.1] - 2023-10-16

### Fixed

- Fix a small regression of the mochiweb parser that was breaking when a
malformed HTML was used. For more details, see the original issue:
https://github.com/philss/floki/issues/492

## [0.35.0] - 2023-10-13

### Added
Expand Down Expand Up @@ -690,7 +698,8 @@ of the parent element inside HTML.

- Elixir version requirement from "~> 1.0.0" to ">= 1.0.0".

[unreleased]: https://github.com/philss/floki/compare/v0.35.0...HEAD
[unreleased]: https://github.com/philss/floki/compare/v0.35.1...HEAD
[0.35.1]: https://github.com/philss/floki/compare/v0.35.0...v0.35.1
[0.35.0]: https://github.com/philss/floki/compare/v0.34.3...v0.35.0
[0.34.3]: https://github.com/philss/floki/compare/v0.34.2...v0.34.3
[0.34.2]: https://github.com/philss/floki/compare/v0.34.1...v0.34.2
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Floki.Mixfile do

@description "Floki is a simple HTML parser that enables search for nodes using CSS selectors."
@source_url "https://github.com/philss/floki"
@version "0.35.0"
@version "0.35.1"

def project do
[
Expand Down
12 changes: 12 additions & 0 deletions test/floki_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1922,6 +1922,18 @@ defmodule FlokiTest do
]
end

@tag only_parser: Mochiweb
test "parse fragment containing malformed HTML with mochiweb" do
html = "<spanclass=\"trade\">™ curl gelée<br><br><br></spanclass=\"trade\">"

tree = Floki.parse_fragment!(html)

assert tree == [
{"spanclass", [{"=", "="}, {"\"trade\"", "\"trade\""}],
["™ curl gelée", {"br", [], []}, {"br", [], []}, {"br", [], []}]}
]
end

defp html_body(body) do
"<html><head></head><body>#{body}</body></html>"
end
Expand Down

0 comments on commit 00c2234

Please sign in to comment.