Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better find examples
  • Loading branch information
kraih committed Jul 23, 2012
1 parent ec77b0e commit 6f18adf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Asset/File.pm
Expand Up @@ -2,8 +2,8 @@ package Mojo::Asset::File;
use Mojo::Base 'Mojo::Asset';

use Carp 'croak';
use Errno;
use Fcntl;
use Errno 'EEXIST';
use Fcntl qw(O_CREAT O_EXCL O_RDWR);
use File::Copy 'move';
use File::Spec;
use IO::File;
Expand Down
12 changes: 6 additions & 6 deletions lib/Mojo/DOM.pm
Expand Up @@ -414,8 +414,8 @@ Mojo::DOM - Minimalistic HTML5/XML DOM parser with CSS3 selectors
my $dom = Mojo::DOM->new('<div><p id="a">A</p><p id="b">B</p></div>');
# Find
my $b = $dom->at('#b');
say $b->text;
say $dom->at('#b')->text;
say $dom->find('p')->pluck('text');
# Walk
say $dom->div->p->[0]->text;
Expand Down Expand Up @@ -574,11 +574,11 @@ selectors from L<Mojo::DOM::CSS> are supported.
Find element namespace.
# Find namespace for an element with namespace prefix
my $namespace = $dom->at('svg > svg\:circle')->namespace;
# Find namespace for an element with namespace prefix
my $namespace = $dom->at('svg > svg\:circle')->namespace;
# Find namespace for an element that may or may not have a namespace prefix
my $namespace = $dom->at('svg > circle')->namespace;
# Find namespace for an element that may or may not have a namespace prefix
my $namespace = $dom->at('svg > circle')->namespace;
=head2 C<parent>
Expand Down

0 comments on commit 6f18adf

Please sign in to comment.