Packages

Microdata is an Elixir library for parsing microdata from a provided document. Includes helper functions, eg for looking up typed items in a document, and named properties in an item.

Current section

15 Versions

Jump to

Compare versions

3 files changed
+3 additions
-3 deletions
  @@ -26,4 +26,4 @@
26 26 {<<"optional">>,false},
27 27 {<<"repository">>,<<"hexpm">>},
28 28 {<<"requirement">>,<<"~> 0.11.0">>}]]}.
29 - {<<"version">>,<<"0.2.2">>}.
29 + {<<"version">>,<<"0.2.3">>}.
  @@ -26,7 +26,7 @@ defmodule Microdata.Strategy.HTMLMicrodata do
26 26 defp parse_items(doc, nest_level, base_uri, items \\ []) do
27 27 selector =
28 28 if nest_level == 0 do
29 - "/*[@itemscope]|//*[@itemscope and not(@itemprop) and count(ancestor::*[@itemscope]) = 0]"
29 + "/*[@itemscope]|//*[@itemscope and count(ancestor::*[@itemscope]) = 0]"
30 30 else
31 31 "//*[@itemscope and not(@itemprop) and count(ancestor::*[@itemscope]) = #{nest_level}]"
32 32 end
  @@ -4,7 +4,7 @@ defmodule Microdata.MixProject do
4 4 def project do
5 5 [
6 6 app: :microdata,
7 - version: "0.2.2",
7 + version: "0.2.3",
8 8 elixir: "~> 1.6",
9 9 start_permanent: Mix.env() == :prod,
10 10 deps: deps(),