Floki crashes for Floki.attribute
on a node list with only text nodes
#280
Labels
Floki.attribute
on a node list with only text nodes
#280
Description
Given this fragment:
Floki crashes when calling
Floki.attribute
onFloki.children
of the root node:To Reproduce
Steps to reproduce the behavior:
Using Floki v0.26.0
Using Elixir v1.10.3
Using Erlang/OTP 23 [erts-11.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
With this code:
Expected behavior
Floki should return an empty list.
The text was updated successfully, but these errors were encountered: