Skip to content

Commit

Permalink
test embedded SVG in HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 11, 2014
1 parent 50abf7d commit 85e8014
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/mojo/dom.t
Expand Up @@ -2324,6 +2324,9 @@ is $dom->parse('<?0?>'), '<?0?>', 'successful roundtrip';
$dom = Mojo::DOM->new('<div /><div><pre />test</div>');
is $dom->at('div > div > pre')->text, 'test', 'right text';
is "$dom", '<div><div><pre>test</pre></div></div>', 'right result';
$dom = Mojo::DOM->new('<p /><svg><circle /></svg>');
is $dom->at('p > svg')->contents->first->type, 'circle', 'right type';
is "$dom", '<p><svg><circle></circle></svg></p>', 'right result';

# Comments
$dom = Mojo::DOM->new(<<EOF);
Expand Down

0 comments on commit 85e8014

Please sign in to comment.