HTML entities displaced when in attributes

5 views
Skip to first unread message

Hamish Lawson

unread,
Oct 13, 2006, 5:50:11 AM10/13/06
to Genshi
HTML entities that occur within attributes seem to be getting displaced
in the resulting stream. For example, this:

<input type="button" value="&rarr;"/>

gets rendered as

\xe2\x86\x92<input type="button" value="">

(Numerical character references are not affected.)

Hamish

Christopher Lenz

unread,
Oct 13, 2006, 6:06:31 AM10/13/06
to gen...@googlegroups.com
Hi Hamish,

Ouch! Can you please create a ticket for that?

Cheers,
Chris
--
Christopher Lenz
cmlenz at gmx.de
http://www.cmlenz.net/

Christopher Lenz

unread,
Oct 13, 2006, 10:28:27 AM10/13/06
to gen...@googlegroups.com
Am 13.10.2006 um 12:06 schrieb Christopher Lenz:
> Am 13.10.2006 um 11:50 schrieb Hamish Lawson:
>> HTML entities that occur within attributes seem to be getting
>> displaced
>> in the resulting stream. For example, this:
>>
>> <input type="button" value="&rarr;"/>
>>
>> gets rendered as
>>
>> \xe2\x86\x92<input type="button" value="">
>>
>> (Numerical character references are not affected.)
>
> Ouch! Can you please create a ticket for that?

No longer needed, I've checked in a fix for this issue:

<http://genshi.edgewall.org/changeset/361>

Thanks,

Reply all
Reply to author
Forward
0 new messages