Re: HTML::LinkEx(trac)tor
Gisle Aas (aas@bergen.sn.no)
Sun, 14 Jul 1996 15:32:33 +0200
In message <199607122219.AAA23110@bergen.sn.no>, Fred Douglis writes:
> And after some debugging I determined that the ... in
> my example was actually the kicker: the text I was parsing had nonconforming
>
> ALT=[ ]
>
> in it!
>
> Now, it's true that despite this not conforming to the HTML spec, it would be
> better for the parser to handle it than to decide the whole thing isn't a tag
> after all and then treat it as regular text (then converting it to < form
> when outputting it later).
What do you suggest the parser should?
Should the 'alt' attribute value end up as "[ ]" or "["? If the
attribute value is to become "[" (as it currently does before the
parser redecides), then what should the next "]" be parsed as?
> However, I'm not going to try and figure out how to munge the regular
> expression to handle this, and hope someone else can figure that part out
> (somewhere in the vicinity of Parser.pm line 232...)
I think the current behavior is correct, but feel free to try to
convince me otherwise...
Regards,
Gisle.