Re: A HTML Parser Bug?
[email protected] (Gisle Aas) Mon, 9 Sep 2013 23:45:17 +0200
| Newsgroups | perl.libwww |
|---|---|
| Message-ID | <CAMx+QJ6FdPpijuABhA1v3Dyh_5F9m3NMqiPUHugweT161ga8yw@mail.gmail.com> |
--f46d043749bddd43fb04e5fa4d59 Content-Type: text/plain; charset=ISO-8859-1 It's quite a lot of effort to try to distil what's wrong from your report. Can you try to reduce the HTML to the minimal amount of code that still show the claimed difference between Firefox and HTML::Parser. Sample code driving the parser would also be helpful. Regards, Gisle On Sun, Sep 8, 2013 at 4:50 PM, Michael Song <[email protected]>wrote: > Hell All, > I've attached my html source code to demonstrate a incompatible parsing > behavior between Parser and Firefox firebug > If you open the below attached file with Firefox firebug, you will see > <div class="gd-grid-6 product-pricing"> is inside <div > class="listing-page-bucket"> enclosure > but when you parse it, the above relationship does not in the tree, > Is there anyway I can get around this problem? > > > Thanks > > > > > > --f46d043749bddd43fb04e5fa4d59 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">It's quite a lot of effort to try to distil what's= wrong from your report. =A0Can you try to reduce the HTML to the minimal a= mount of code that still show the claimed difference between Firefox and HT= ML::Parser. =A0Sample code driving the parser would also be helpful.<div> <br></div><div>Regards,</div><div>Gisle</div></div><div class=3D"gmail_extr= a"><br><br><div class=3D"gmail_quote">On Sun, Sep 8, 2013 at 4:50 PM, Micha= el Song <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" t= arget=3D"_blank">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div><div><div><div><d= iv>Hell All,<br></div>I've attached my html source code to demonstrate = a incompatible parsing behavior between Parser and Firefox firebug<br> </div>If you open the below attached file with Firefox firebug, you will se= e<br> </div><div class=3D"gd-grid-6 product-pricing">=A0 is insid= e <div class=3D"listing-page-bucket"> enclosure<br></div>bu= t when you parse it, the above relationship does not in the tree,<br></div>= Is there anyway I can get around this problem?<br> <br><br></div>Thanks<br><div><div><br><div><br><br><div><div><br><br></div>= </div></div></div></div></div> </blockquote></div><br></div> --f46d043749bddd43fb04e5fa4d59--