Message from discussion Upgrading to latest Rose seems to expose a bug with Rose::HTML::Object
Received: by 10.90.92.6 with SMTP id p6mr762865agb.0.1284326586696;
Sun, 12 Sep 2010 14:23:06 -0700 (PDT)
Received: by 10.91.21.26 with SMTP id y26ls331485agi.1.p; Sun, 12 Sep 2010
14:23:03 -0700 (PDT)
Received: by 10.91.107.14 with SMTP id j14mr321466agm.41.1284326583777; Sun,
12 Sep 2010 14:23:03 -0700 (PDT)
Received: by g10g2000vbc.googlegroups.com with HTTP; Sun, 12 Sep 2010 14:23:03
Date: Sun, 12 Sep 2010 14:23:03 -0700 (PDT)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4,gzip(gfe)
Subject: Re: Upgrading to latest Rose seems to expose a bug with Rose::HTML::Object
From: James Masters <ja...@mastersgames.com>
To: "Rose::HTML::Objects" <firstname.lastname@example.org>
Content-Type: text/plain; charset=ISO-8859-1
I did bring this up before but was unable to investigate properly at
the time. It has become pressing to upgrade Perl and Rose so today I
renamed my existing old version of the Perl directory and installed a
brand new ActiveState Perl v2.12.2. Then using PPM3 (opens into a GUI
now - oooh), I installed
Pretty much everything seems to still be working except for
Rose::HTML::Object. I have since also installed the following in case
it would help but they made no difference: Rose; Rose::Conf;
When I run my script that uses Rose::HTML::Object, compilation dies
at Rose/HTML/Form.pm line 16 (my version is 0.606). I made a change
to Perl/lib/base.pm so that it reports the error message rather than
just dying mutely. Now it says:
Can't locate object method "valid_html_attrs" via package
"Rose::HTML::Text" at C:/Perl/site/lib/Rose/HTML/Text.pm line 11.
Compilation failed in require at C:/Perl/site/lib/Rose/HTML/Object/
MakeMethods/Generic.pm line 15.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Rose/HTML/Object/
WithWrapAroundChildren.pm line 27.
The following all complete reporting nothing so I assume are OK:
Ran perl -MRose::HTML::Form -e 1
perl -MRose::HTML::Object::WithWrapAroundChildren -e 1
perl -MRose::HTML::Form::Field -e 1
perl -MRose::HTML::Form::Field::Collection -e 1
perl -MRose::HTML::Text -e 1
perl -MRose::HTML::Object -e 1
perl -MRose::HTML::Objects -e 1
So then I tried to find where valid_html_attrs is defined and I could
not. I presume that it is a method either defined in Rose/HTML/
Text.pm or a module it inherits from. I don't really understand
inheritance but I think use base Rose/HTML/Object.pm means it inherits
its methods from there? But it doesn't seem to be defined in there.
I tried to search for "sub valid_html_attrs" though all modules in or
below the lib/Rose directory and the phrase was not found. So perhaps
it's not installed in my version of Perl for some reason. So I
wondered if perhaps the ActiveState versions of modules were out of
date or not in sync. So I went to CPAN and searched for
"valid_html_attrs" with only 1 result - Rose-HTML-Object. Looking
through this documentation page (module v0.606) on CPAN, the method
'valid_html_attrs' is mentioned and described. But neither my version
(also v.0606) or the source on CPAN seems to have "sub
valid_html_attrs" defined in it.
So where is the method valid_html_attrs defined?
Many thanks for any help.