[Petal] BUG: Static attribute values are not XML encoded
Kurt Stephens
kstep at pepsdesign.com
Mon Feb 3 19:14:49 GMT 2003
Hi All,
I noticed that Petal does not write back static attribute values in encoded
form. The resulting output is not well-formed. There is not a problem when
Petal replaces attributes using the petal::attribute command.
For example:
<foo email=""My Address" <foo at example.org>" />
becomes:
<foo email=""My Address" <foo at example.org>" />
I think I've tracked down the problem to line 200 in
Petal::Canonicalizer::XML.pm and line 124 in Petal::Canonicalizer::XHTML.pm.
I have attached a test case, with patches to correct the problem.
Best Regards,
Kurt Stephens
Not <foo email=""Kurt Stephens" <kstep at pepsdesign.com>" />
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_entities.tar.gz
Type: application/x-gzip
Size: 1014 bytes
Desc: not available
Url : http://lists.webarch.co.uk/pipermail/petal/attachments/20030203/067c0c2e/test_entities.tar.bin
More information about the Petal
mailing list