tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:
output isuse strict; use warnings; use HTML::Element; use Test::More qw(no_plan); my $element = HTML::Element->new('td', "class"=>"zwischanspalte"); $element->push_content(' '); my $expected = '<td class="zwischanspalte"> </td>'; my $html = $element->as_HTML(); is($html, $expected);
How can I get this to work? Thanks!not ok 1 # Failed test (pseudoelement.pl at line 12) # got: '<td class="zwischanspalte">&nbsp;</td> # ' # expected: '<td class="zwischanspalte"> </td>' 1..1 # Looks like you failed 1 tests of 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I create non-breaking space ( ) with HTML::Element?
by Tanalis (Curate) on Aug 08, 2005 at 13:29 UTC | |
by tphyahoo (Vicar) on Aug 08, 2005 at 13:52 UTC | |
|
Re: How do I create non-breaking space ( ) with HTML::Element?
by marnanel (Beadle) on Aug 08, 2005 at 16:47 UTC | |
|
Re: How do I create non-breaking space ( ) with HTML::Element?
by Marel (Initiate) on Mar 15, 2012 at 22:22 UTC | |
|
Re: How do I create non-breaking space ( ) with HTML::Element?
by gu (Beadle) on Nov 15, 2005 at 20:51 UTC | |
by etlamar (Novice) on Aug 12, 2012 at 12:59 UTC |