Re: HTML::Parser (HTML::LinkExtor) Broken?

Matthew Keller (keller57@potsdam.edu)
Thu, 11 Mar 1999 08:35:09 -0500


Ed wrote:
> 
> On Sat, 6 Mar 1999, Matthew Keller wrote:
> [...]
> >       This returns all of the AREA elements marked with 'SHAPE="circle"', but
> > none of the 'rect' areas. This page has a total of *27* link elements,
> > but only *7* are returned, because 20 of them are AREA elements with
> > 'SHAPE="rect"'
> [...]
> > -- Begin HTML Snippet --
> > <AREA SHAPE="circle" COORDS="582,149,51"
> > HREF="http://mattwork.potsdam.edu/friends.htm" ALT="My Friends">
> > <AREA SHAPE="rect" COORDS="3,401,198,440",
> > HREF="http://mattwork.potsdam.edu/Me/" ALT="Me Stuff">
> > -- End HTML Snippet --
> 
> I believe that the breakage is not what you think it is. If you
> delete the ',' from the end of the COORDS= attribute of the second
> element, it starts working. I'm not sure how tolerant HTML::Parser
> is supposed to be of such bad SGML, but this is the root of the
> problem.

	Heh... *blush* Interesting. It seems that A LOT of client side image
maps, have this comma in it, after 'RECT' markups only --- Wierd. Thanks
a million - Now to try and figure out how to trap OTHER PEOPLE'S poorly
written code! Thanks again!


-- 

             -> Matthew Keller <-
            Distributed Computing
             Windows/UNIX Support
              and Host Services
                 Kellas Hall
   State University of New York at Potsdam	
         http://mattwork.potsdam.edu/
-
     They wouldn't give you the time of day.
     They said you weren't a player.
     They wouldn't accept your calls.
     They are holding on line three.
-
 PGP Keys -
    http://mattwork.potsdam.edu/crypto/