I want to retrieve the iframe tags from html code, whose width and height values are 0(zero)
using nokogiri gem in Ruby 1.9.2
I want to retrieve the iframe tags from html code, whose width and height
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A single xpath statement will do the trick:
This assumes that everything is present in the retrieved HTML. If the
iframe,width, orheightare only present in the DOM after javascript execution, this will not work.