bug in HTML::Element ?
Kingpin (mthurn@fandago.read.tasc.com)
Thu, 2 Jul 1998 18:02:24 -0400
I have perl 5.004_04 on Solaris 2.5.1
HTML::Element version 1.37
When I create a new <A> element, ampersands in its href URL get
changed to &
This is bad, of course the value of the HREF should not be changed!
Is there a new version of HTML::Element? Or, is there a new module
which replaces HTML::Element? (I can't figure out where HTML::Element
came from in the first place!)
=====
#!/usr/local/bin/perl -w
use HTML::Element;
my $a = new HTML::Element('a','href'=>'http://ouch.com/cgi-bin/program?a=a&b=b&c=c');
print $a->as_HTML;
=====
The result is:
<A HREF="http://ouch.com/cgi-bin/program?a=a&b=b&c=c"></A>
--
- - Martin "Kingpin" Thurn mthurn@tasc.com
Research Software Engineer (703) 793-3700 x2651
The Information Refinery http://tir.tasc.com
TASC, Inc. http://www.tasc.com
Try not! Do... or do not. There is no try. -- Yoda, The Empire Strikes Back, The Empire Strikes Back