Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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
Replies are listed 'Best First'.
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 romping around the Monastery: (8)
As of 2015-07-29 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls