Browse Source

Fix implied_photo_deep trying to use a string as an element

Found by using Html5ever parser
pull/6/head
Greg V 1 year ago
parent
commit
2d380aa72b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/implied.ex

+ 1
- 1
lib/implied.ex View File

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



Loading…
Cancel
Save