[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libhtml-html5-parser-perl: suggests libxml-libxml-devel-setlinenumber-perl, which doesn't exist



With regards to bug #734123, what is the groups' feeling on packaging
libxml-libxml-devel-setlinenumber-perl given the following on the
metacpan page[0]:

> DESCRIPTION
> 
> This module exports one function:
> 
> set_line_number($node, $number)
> 
>     Sets a node's line number.
> 
> Why in name of all that is good and holy would you want to do that? Frankly, you probably don't. And you probably shouldn't.
> 
> There's just about one sitution where it makes sense. If you are, say, writing a parser for a non-XML format that happens to have an XML-like data model, then you might wish to parse your format into an XML::LibXML document with elements, attributes and so on. And you might want all those nodes to return the correct line numbers when the line_number method is called on them. Say, for instance that you're working on HTML::HTML5::Parser.
> THIS MODULE IS WELL DODGY
> 
> And you're a fool if you use it.

[0] https://metacpan.org/pod/XML::LibXML::Devel::SetLineNumber

-- 
Daniel Lintott
GPG Key: 4096R/5D73EC6E

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: