Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
There's more than one way to do things
 
PerlMonks  

Re: HTML::TreeBuilder, HTML::Element, as_XML()

by Jenda (Abbot)
on May 23, 2013 at 15:16 UTC ( #1034963=note: print w/ replies, xml ) Need Help??


in reply to HTML::TreeBuilder, HTML::Element, as_XML()

IMnsHO, there is a bug in the _valid_name subroutine deep in HTML::Element. There should be

return (0) unless ( $attr =~ /^$START_CHAR$NAME_CHAR*$/ );
not
return (0) unless ( $attr =~ /^$START_CHAR$NAME_CHAR+$/ );

The XML specs say that

Name ::= NameStartChar (NameChar)*

Jenda
Enoch was right!
Enjoy the last years of Rome.


Comment on Re: HTML::TreeBuilder, HTML::Element, as_XML()
Select or Download Code
Re^2: HTML::TreeBuilder, HTML::Element, as_XML()
by Anonymous Monk on May 23, 2013 at 16:41 UTC

    IMnsHO, there is a bug in the _valid_name subroutine deep in HTML::Element. There should be

    I wouldn't go that far , the OP provides no data

      The OP doesn't need to provide data, the code doesn't match the specs linked five lines above the code in question.

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2014-04-23 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls