Browse Source

Merge pull request #6 from myfreeweb/master

Fix implied_photo_deep trying to use a string as an element
master
Christian Kruse 1 year ago
committed by GitHub
parent
commit
8c673ae24e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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