diff --git a/lib/mida/itemprop.rb b/lib/mida/itemprop.rb index f636aa4..b76e5f4 100644 --- a/lib/mida/itemprop.rb +++ b/lib/mida/itemprop.rb @@ -77,8 +77,9 @@ def extract_property_value element = @element.name if non_textcontent_element?(element) attribute = NON_TEXTCONTENT_ELEMENTS[element] - value = @element.attribute(attribute).value - url_attribute?(attribute) ? make_absolute_url(value) : value + if attribute_node = @element.attribute(attribute) + url_attribute?(attribute) ? make_absolute_url(attribute_node.value) : attribute_node.value + end else @element.inner_text.strip end diff --git a/spec/fixtures/Cut the Rope - Android Market.html b/spec/fixtures/Cut the Rope - Android Market.html new file mode 100644 index 0000000..aea0744 --- /dev/null +++ b/spec/fixtures/Cut the Rope - Android Market.html @@ -0,0 +1,27 @@ + +Cut the Rope - Android Market +

Cut the Rope

ZeptoLab
(15,482)
Cut the Rope
  • Overview
  • User Reviews
  • What's New
  • Permissions

Users who viewed this also viewed

Users who installed this also installed

Description

Cut the Rope, catch a star, and feed Om Nom candy in this award-winning game!

The long-awaited hit game has finally arrived at Android! Join MORE THAN 55 MILLION PEOPLE who have already played this game and gave it an average rating of 4.81 (out of 5)!

The little monster Om Nom is hungry and the only thing standing between him and a full belly is you – that is your help cutting the ropes that hold the candy he wants. Swipe your finger across the ropes to release the delicious bundles into his mouth. But don’t forget to collect the stars and break the bubbles along the way – easier said than done when enemies and obstacles await!

Cut the Rope is an award-winning mobile game from ZeptoLab, was an instant phenomenon in the iOS App Store reaching the #1 spot globally, and continues to gain popularity as it makes its way onto Android.

Visit Developer's Website

App Screenshots

Videos

User Reviews

  
  
  
  
  
Average rating:
4.7
15,482

Very cool game. Spent a few hours enjoying this! Completed it all on perfect ...

by Mike– October 26, 2011

Very cool game. Spent a few hours enjoying this! Completed it all on perfect now. Looking forward to more levels. Keep up the awesome work guys.


Finally fixed and amazing!

by Alfred– September 30, 2011

Game is addictive and fun for a few games or 20 minutes. Update fixed issues on AT&T Galaxy S Captivate 2.2, finally. 5 stars now.


Definitely a high-quality game. Too bad most levels are so easy to get perfect. ...

by Helge Willum– October 6, 2011

Definitely a high-quality game. Too bad most levels are so easy to get perfect. I got many of them on first attempt.


Read All User Reviews
+ \ No newline at end of file diff --git a/spec/fixtures_spec.rb b/spec/fixtures_spec.rb new file mode 100644 index 0000000..9fdcef2 --- /dev/null +++ b/spec/fixtures_spec.rb @@ -0,0 +1,15 @@ +require 'spec_helper' +require 'mida' +require 'pathname' + +describe Mida do + it "should work with all fixtures" do + url = "https://market.android.com/details?id=com.zeptolab.ctr.paid&hl=en" + + documents = Pathname.new(__FILE__).dirname.join('fixtures').children + documents.each do |file| + doc = Mida::Document.new(file.read, url) + doc.items.should_not be_empty + end + end +end \ No newline at end of file