Subject: | ::Document->namespaceURI segfaults |
Of course, the namespaceURI() method should not be used on the document
itself, but it happened to me... my method accepts XML fragments, both
Elements and Documents; and I forgot to take the root element when a
document was passed.
This produces a segfault:
my $doc = XML::LibXML::Document->new('1.0', 'utf-8');
print $doc->namespaceURI;
I don't know whether this is a libxml2 problem or an XML::LibXML problem
(I use libxml 2.6.26)