Skip to content

Commit

Permalink
Finish 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed May 17, 2017
2 parents 9861d3a + 22146c0 commit 72f648d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.0
2.2.1
2 changes: 1 addition & 1 deletion lib/rdf/microdata/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def property_value(element)
value = case
when element.has_attribute?('itemscope')
{}
when element.name == 'meta'
when element.has_attribute?('content')
RDF::Literal.new(element.attribute('content').to_s, language: element.language)
when %w(data meter).include?(element.name) && element.attribute('value')
# Lexically scan value and assign appropriate type, otherwise, leave untyped
Expand Down
4 changes: 4 additions & 0 deletions spec/reader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
%q(<meta itemprop="meta" content="foo"/>),
%q(_:a <http://schema.org/meta> "foo" .)
],
[
%q(<span itemprop="span" content="foo">Bar</span>),
%q(_:a <http://schema.org/span> "foo" .)
],
[
%q(<audio itemprop="audio" src="foo"></audio>),
%q(_:a <http://schema.org/audio> <foo> .)
Expand Down

0 comments on commit 72f648d

Please sign in to comment.