You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, the third line is not wrapped in a <div>, even though it should be.
Misc
When playing around with slightly different markup, I got these warnings to pop up:
Use of uninitialized value in string eq at /home/zoffix/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/Mojo/DOM.pm line 312.
splice() offset past end of array at /home/zoffix/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/Mojo/DOM.pm line 286.
I believe the ->ated portion of the markup was:
<divclass="section even"><h1>UTC-12</h1><divclass="cloud scloud w90"><ul><liid="c0"><aclass="s1 country multizone bold" href="U.S._Minor_Outlying_Islands" onmouseout="hvr(0)" onmouseover="hvr(0,1)">Illes Perif�riques Menors dels EUA</a><ul><li><aclass="s2" href="Baker_Island">Baker Island</a></li><li><aclass="s2" href="Howland_Island">Howland Island</a></li></ul></li></ul></div></div>
Versions
zoffix@ZofMain:~$ perl -v
This is perl 5, version 22, subversion 0 (v5.22.0) built for i686-linux
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
zoffix@ZofMain:~$ perl -MMojolicious -wlE 'say Mojolicious->VERSION'
6.33
zoffix@ZofMain:~$
The text was updated successfully, but these errors were encountered:
Problem
If your
Mojo::DOM
object was obtained using->at
or->find
Mojo::DOM
's methods, the->wrap
method stops working.Demo
Expected Results
Current Results
As you can see, the third line is not wrapped in a
<div>
, even though it should be.Misc
When playing around with slightly different markup, I got these warnings to pop up:
I believe the
->at
ed portion of the markup was:Versions
The text was updated successfully, but these errors were encountered: