Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unchecking checkboxes in nested forms currently crashes with ``` ** (FunctionClauseError) no function clause matching in Floki.Selector.Parser.do_parse/2 The following arguments were given to Floki.Selector.Parser.do_parse/2: # 1 [{~c"]", 1}] # 2 %Floki.Selector{id: nil, type: "input", classes: [], attributes: [%Floki.Selector.AttributeSelector{match_type: :equal, attribute: "name", value: "payer", flag: nil}, %Floki.Selector.AttributeSelector{match_type: :equal, attribute: "type", value: "hidden", flag: nil}], namespace: nil, pseudo_classes: [], combinator: nil} Attempted function clauses (showing 10 out of 21): defp do_parse([], selector) defp do_parse([{:close_parentesis, _} | t], selector) defp do_parse([{:comma, _} | t], selector) defp do_parse([{:identifier, _, namespace}, {:namespace_pipe, _} | t], selector) defp do_parse([{:identifier, _, type} | t], selector) defp do_parse([{~c"*", _} | t], selector) defp do_parse([{:hash, _, id} | t], selector) defp do_parse([{:class, _, class} | t], selector) defp do_parse([{~c"[", _} | t], selector) defp do_parse([{:pseudo_not, _} | t], selector) ... (11 clauses not shown) ``` This commit escapes brackets in the hidden input name by wrapping it in single quotes.
- Loading branch information