Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 122773
Status: rejected
Priority: 0/
Queue: XML-LibXML

Owner: Nobody in particular
Requestors: jidanni [...]

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

Subject: Base URIs: mention in no case will any <a href="..."> be altered
Download (untitled) / with headers
text/plain 940b
On XML::LibXML::Parser at URI /parser, html, reader/ In case of parsing strings or file handles, XML::LibXML doesn't know about the base uri of the document. To make relative references such as XIncludes work, one has to set a base URI, that is then used for the parsed document. please add: In no case will any <a href="..."> be altered, nor will any <base /> tags be added, when outputting with toString(), etc. The same holds true for any $baseuri or base_uri mentioned here. Example: #!/usr/bin/perl use strict; use warnings FATAL => 'all'; use XML::LibXML; my $doc = XML::LibXML->new->parse_html_string( '<a href="/bla">oo</a>', { URI => '' } ); print $doc->URI(), "\n"; $_ = $doc->toString(1); print; s/.*DOCTYPE.*\n//m; my $doc2 = XML::LibXML->new->parse_string( $_, '' ); print $doc2->toString(1);
Download (untitled) / with headers
text/plain 649b
On Fri Aug 11 20:55:54 2017, wrote: Show quoted text
> On > XML::LibXML::Parser > at > URI /parser, html, reader/
Dear Dan, I'm sorry, but I don't like your bug reports and find them very lame. Please, please, PLEASE, stop filing them against my CPAN distributions or any other projects, because you are wasting my time having to close them due to my multiple disabilities and the poor usability and availability of If you found a real security bug, and verified it with a fellow Perl developer, then you can file it, but otherwise - forget it! Thanks for your understanding and compliance. Regards, -- Shlomi Fish

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

Please report any issues with to