Skip to content

Commit

Permalink
use the correct terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 11, 2015
1 parent b88b07a commit 1bd1ed3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/DOM.pm
Expand Up @@ -449,8 +449,8 @@ names are lowercased and selectors need to be lowercase as well.
my $dom = Mojo::DOM->new('<P ID="greeting">Hi!</P>');
say $dom->at('p[id]')->text;
If XML processing instructions are found, the parser will automatically switch
into XML mode and everything becomes case-sensitive.
If an XML declaration is found, the parser will automatically switch into XML
mode and everything becomes case-sensitive.
# XML semantics
my $dom = Mojo::DOM->new('<?xml version="1.0"?><P ID="greeting">Hi!</P>');
Expand Down Expand Up @@ -745,7 +745,7 @@ no parent.
Parse HTML/XML fragment with L<Mojo::DOM::HTML>.
# Parse XML
my $dom = Mojo::DOM->new->xml(1)->parse($xml);
my $dom = Mojo::DOM->new->xml(1)->parse('<foo>I ♥ Mojolicious!<foo/>');
=head2 preceding
Expand Down

0 comments on commit 1bd1ed3

Please sign in to comment.