Skip Menu |
 

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 16589
Status: resolved
Priority: 0/
Queue: HTML-Tree

People
Owner: Nobody in particular
Requestors: ZACKSE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 3.19_03
Fixed in: (no value)

Attachments


MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Subject: Minor typo in documentation for TreeBuilder
Content-Type: multipart/mixed; boundary="----------=_1134957963-23201-0"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 279
Download (untitled) / with headers
text/plain 279b
There is a minor typo in the documentation for HTML::TreeBuilder in the section describing the guts() method. Attached is a patch to fix the typo ("@notes" should be "@nodes"). Thanks for your work on this distribution, it has proven quite useful for several different projects.
Content-Type: text/x-patch; name="html-tree.patch"
Content-Disposition: inline; filename="html-tree.patch"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 638
Download html-tree.patch
text/x-diff 638b
diff -ur HTML-Tree-3.19_03.orig/lib/HTML/TreeBuilder.pm HTML-Tree-3.19_03/lib/HTML/TreeBuilder.pm --- HTML-Tree-3.19_03.orig/lib/HTML/TreeBuilder.pm 2005-11-25 22:55:52.000000000 -0500 +++ HTML-Tree-3.19_03/lib/HTML/TreeBuilder.pm 2005-12-18 21:02:20.662106888 -0500 @@ -1599,7 +1599,7 @@ <li>I like pie! Then you would get that with C<< @nodes = $root->guts(); >>. -It so happens that in this case, @notes will contain just one +It so happens that in this case, @nodes will contain just one element object, representing the "li" node (with "I like pie!" being its text child node). However, consider if you were parsing this:
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
X-RT-Original-Encoding: iso-8859-1
Content-Length: 59
Thanks. Fixed in Subversion. Will be in the next release.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.