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

Report information
The Basics
Id:
16207
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
paul.bijnens [...] xplanation.com
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
3.47
Fixed in:
(no value)



Subject: marked_sections omit first 3 bytes "<![" from "skipped_text"
When processing a document with "marked_sections => 1", the skipped text misses the first 3 bytes "<![", as this program shows: ====== cut here ====== #!/usr/bin/perl use HTML::Parser; my $doc = "<Tag><![CDATA[This is cdata]]></Tag>"; my $result = ""; my $parser = HTML::Parser->new( marked_sections => 1, handlers => { default => [ sub { $result .= join("",@_) }, "skipped_text,text" ] } )->parse($doc); print "Version: $HTML::Parser::VERSION\n"; # prints: Version: 3.47 print "INPUT: $doc\n"; # prints: <Tag><![CDATA[This is cdata]]></Tag> print "OUTPUT: $result\n"; # prints: <Tag>CDATA[This is cdata]]></Tag> ====== cut here ======
Fixed in HTML-Parser-3.48.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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