_why
12/18/2006 6:12:00 AM
On Mon, Dec 18, 2006 at 01:55:26AM +0900, Peter Szinek wrote:
> > I have found that saved pages from Firefox are different then the html
> > hpricot uses.
>
> What Hpricot does is very similar: It builds a DOM of the HTML. (I am
> not sure if _why calls this a DOM or whatever, but it is an internal
> representation of the underlying HTML). Of course Mozilla DOM != HPricot
> DOM (!= IE DOM != Opera DOM et cetera) therefore you can't make
> assumptions about what does Hpricot do based on what does Mozilla do.
Well, but, I'd actually like to get Hpricot's parser to be close to Firefox's.
So, what I'm saying is: if Hpricot appears to read HTML differently from
Firefox, I'd say that's a bug. Yep, for sure it is.
_why