"Sean M. Burke" <[EMAIL PROTECTED]> writes:

> At 05:00 PM 2000-01-04 -0800, Ask Bjoern Hansen asked:
> >Using the "old" HTML::Parser...
> >[...]
> >why is $t->[2]->{foobar} set to "foobar"? How can I see the difference
> >between just "foobar" in the original input and 'foobar= "foobar"'?
> 
> You can't, because "<element foo>" /means/ "<element foo='foo'>".  That's
> why the parser doesn't distinguish them.

With HTML::Parser 3.02 you can set $p->boolean_attribute_value before
you start parsing.  This is then the value you get back for minimized
boolean attributes.  Setting it to undef make sure it will not clash
"real" values; $p->boolean_attribute_value(undef);

Regards,
Gisle

Reply via email to