Attributes with dashes

Olaf Buwen <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
Hi,

in one of my projects, I found that
"tal:attributes='foo-bar data/foo/bar'" does not work, although XML 
allows attributes with dashes.

As a workaround, I modified the regular expression in
Petal/Canonicalizer/XML.pm, line 547 from
     /^\s*((?:\w|\:)+)\s+(.*?)\s*$/
to
     /^\s*((?:[-\w]|\:)+)\s+(.*?)\s*$/
so that dashes now are recognized.

Is there any interest for this patch to be included in the next release?

Regards
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.