File tree Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 1- package MetaCPAN::Web::Test:: HTML5::Element ;
1+ package HTML5::Element ;
22use strict;
33use warnings;
44
55use parent ' HTML::Element' ;
66
7- use MetaCPAN::Web::Test:: HTML5::Element::SVG;
8- use constant SVG_CLASS => ' MetaCPAN::Web::Test:: HTML5::Element::SVG' ;
7+ use HTML5::Element::SVG;
8+ use constant SVG_CLASS => ' HTML5::Element::SVG' ;
99
1010sub insert_element {
1111 my ($self , $tag , @more ) = @_ ;
Original file line number Diff line number Diff line change 1- package MetaCPAN::Web::Test:: HTML5::Element::SVG ;
1+ package HTML5::Element::SVG ;
22use strict;
33use warnings;
44
5- use parent ' MetaCPAN::Web::Test:: HTML5::Element' ;
5+ use parent ' HTML5::Element' ;
66
77sub starttag_XML {
88 my $self = shift ;
Original file line number Diff line number Diff line change 1- package MetaCPAN::Web::Test:: HTML5::TreeBuilder ;
1+ package HTML5::TreeBuilder ;
22use strict;
33use warnings;
44
55use parent ' HTML::TreeBuilder' ;
66
7- use MetaCPAN::Web::Test::HTML5::Element::SVG (); # # no perlimports
7+ use HTML5::Element::SVG;
8+ use constant SVG_CLASS => ' HTML5::Element::SVG' ;
89
9- use constant SVG_CLASS => ' MetaCPAN::Web::Test::HTML5::Element::SVG' ;
10-
11- use MetaCPAN::Web::Test::HTML5::Element::MathML;
12- use constant MATHML_CLASS => ' MetaCPAN::Web::Test::HTML5::Element::MathML' ;
10+ use HTML5::Element::MathML;
11+ use constant MATHML_CLASS => ' HTML5::Element::MathML' ;
1312
1413my @html5_elements = qw(
1514 article audio aside bdi datalist canvas details dialog embed figcaption
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ use warnings;
88use HTTP::Request::Common qw( GET POST ) ; # # no perlimports
99use HTTP::Message::PSGI (); # # no perlimports
1010use Plack::Test qw( test_psgi) ; # # no perlimports
11+ use HTML5::TreeBuilder;
1112use base ' Exporter' ;
12- use Encode qw( decode_utf8 ) ;
13- use Future ();
14- use MetaCPAN::Web::Test::HTML5::TreeBuilder ();
15- use Test::More import => [qw( is ) ];
13+ use Encode qw( decode_utf8 ) ;
14+ use Future ();
15+ use Test::More import => [qw( is ) ];
1616use Test::XPath ();
1717use Try::Tiny qw( catch try ) ;
1818our @EXPORT = qw(
@@ -75,8 +75,7 @@ sub tx {
7575
7676# Text::XPath has `is_html` but the LibXML HTML parser doesn't like some html 5 (like nav).
7777 if ( delete $opts -> {html } ) {
78- $xml = MetaCPAN::Web::Test::HTML5::TreeBuilder-> new_from_content($xml )
79- -> as_XML;
78+ $xml = HTML5::TreeBuilder-> new_from_content($xml )-> as_XML;
8079 }
8180
8281 # Upgrading some library (not sure which) in Sep/Oct 2013 started
You can’t perform that action at this time.
0 commit comments