4 Jan 15:55
Attributes with dashes
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
Chris

RSS Feed