Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 browsing the Monastery: (1)
As of 2026-04-11 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.