Subject: | Bugs in DOM property setters |
I'd expect DOM property setters return the new value given rather than
the old one. Consider the equivalent JS assignment:
alert(document.title = "Foo");
which will give "Foo" instead of the old value of document.title.
There may be other instances like this.
Besides, I've found HTML::DOM's URI property is not writable. See the
following test script (which is currently failing):
use HTML::DOM;
use Test::More tests => 4;
my $doc = HTML::DOM->new(url => 'http://foo.org');
is($doc->URL('http://bar.com'), 'http://bar.com');
is($doc->URL, 'http://bar.com');
Thanks, agentz