X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README.pod;fp=README.pod;h=85a448a627c92cc9e47a5f9a6112531ccca14df2;hb=3793c28fc8d722efd6bfff60020926bebedd03e5;hp=2f6ea69c8e41d8472386324eeab8bf31905a6514;hpb=e085469f74acf95e5d60b2fd88b0e7d720710e24;p=catagits%2FDOM-Tiny.git diff --git a/README.pod b/README.pod index 2f6ea69..85a448a 100644 --- a/README.pod +++ b/README.pod @@ -95,6 +95,14 @@ XML detection can also be disabled with the L method. L implements the following methods. +=head2 new + + my $dom = DOM::Tiny->new; + my $dom = DOM::Tiny->new('I ♥ DOM::Tiny!'); + +Construct a new scalar-based L object and L HTML/XML +fragment if necessary. + =head2 all_text my $trimmed = $dom->all_text; @@ -324,14 +332,6 @@ Find this element's namespace or return C if none could be found. # Find namespace for an element that may or may not have a namespace prefix my $namespace = $dom->at('svg > circle')->namespace; -=head2 new - - my $dom = DOM::Tiny->new; - my $dom = DOM::Tiny->new('I ♥ DOM::Tiny!'); - -Construct a new scalar-based L object and L HTML/XML -fragment if necessary. - =head2 next my $sibling = $dom->next;