Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Jenda (Abbot)
on May 23, 2013 at 15:16 UTC ( [id://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.

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1034963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-18 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found