[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [ANN] Hpricot 0.2 -- scanner: check, parser: check.

Ron M

7/8/2006 1:46:00 PM

why the lucky stiff wrote:
> On Tue, Jul 04, 2006 at 02:28:45PM +0900, why the lucky stiff wrote:
>> gem install hpricot --source code.whytheluckystiff.net
>
> Okay, 0.2 is out....

Hpricot chokes on this when I try it.

require 'rubygems'
require 'hpricot'
require 'open-uri'
Hpricot(open('http://www.pcmag.com/article2/0,1759,1765785,0...)).to_html

If I understand, some methods (to_html, at least) in the version
of Hpricot I have (whatever was there yesterday morning) doesn't
like ugly "html" like "<input type=checkbox checked>" where apparently
attribute values end up being null.

I can work around it by putting
aval ||= ''
in STag in tag.rb


1 Answer

why the lucky stiff

7/8/2006 2:45:00 PM

0

On Sat, Jul 08, 2006 at 10:46:00PM +0900, Ron M wrote:
> Hpricot chokes on this when I try it.
>
> require 'rubygems'
> require 'hpricot'
> require 'open-uri'
> Hpricot(open('http://www.pcmag.com/article2/0,1759,1765785,0...)).to_html
>

Wonderful, thankyou. This is fixed in trunk now. Have a good time.

_why