Browse Source

fix: typos

tags/microformats2-0.0.7
Christian Kruse 4 years ago
parent
commit
ba35aaf6b4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/implied.ex

+ 3
- 3
lib/implied.ex View File

@@ -126,10 +126,10 @@ defmodule Microformats2.Items.ImpliedProperties do
fn(el) when is_bitstring(el) -> false
(_) -> true end)

if Enum.count(children) == 1 do
if Enum.count(only_nodes) == 1 do
child = List.first(children)
sec_imgs = direct_not_h_children_with_attr(root, "img", "src")
sec_objs = direct_not_h_children_with_attr(root, "object", "data")
sec_imgs = direct_not_h_children_with_attr(child, "img", "src")
sec_objs = direct_not_h_children_with_attr(child, "object", "data")

cond do
Enum.count(sec_imgs) == 1 ->


Loading…
Cancel
Save