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

chore: fix some typos #564

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/floki/entities.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ defmodule Floki.Entities do
* less-than sign - < - is replaced by "&lt;".
* greater-than sign - > - is replaced by "&gt;".

All other simbols are going to remain the same.
All other symbols are going to remain the same.

Optimized IO data implementation from Plug.HTML
"""
Expand Down
2 changes: 1 addition & 1 deletion src/floki_mochi_html.erl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ norm({Tag, Attrs}, Opts) ->
case lists:keyfind(attributes_as_maps, 1, Opts) of
{attributes_as_maps, true} ->
% The HTML specs says we should ignore duplicated attributes and keep the first
% occurence of a given key.
% occurrence of a given key.
% Since `maps:from_list/1` does the opposite, we need to reverse the attributes.
% See https://github.com/philss/floki/pull/467#discussion_r1225548333
{norm(Tag, Opts), maps:from_list(lists:reverse(Attrs0)), []};
Expand Down
Loading