From 2d380aa72bf078c612e6f70d1e74939ea64dc001 Mon Sep 17 00:00:00 2001 From: Greg V Date: Sun, 7 Apr 2019 21:05:08 +0300 Subject: [PATCH] Fix implied_photo_deep trying to use a string as an element Found by using Html5ever parser --- lib/implied.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/implied.ex b/lib/implied.ex index 5b3adcd..edb1625 100644 --- a/lib/implied.ex +++ b/lib/implied.ex @@ -123,7 +123,7 @@ defmodule Microformats2.Items.ImpliedProperties do only_nodes = Enum.reject(children, &is_bitstring/1) if Enum.count(only_nodes) == 1 do - child = List.first(children) + child = List.first(only_nodes) sec_imgs = direct_not_h_children_with_attr(child, "img", "src") sec_objs = direct_not_h_children_with_attr(child, "object", "data")