Selaa lähdekoodia

Fix implied_photo_deep trying to use a string as an element

Found by using Html5ever parser
pull/6/head
Greg V 2 vuotta sitten
vanhempi
commit
2d380aa72b
  1. 2
      lib/implied.ex

2
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")

Ladataan…
Peruuta
Tallenna