Re: HTML::Entities
Robin Berjon (robin@knowscape.com)
Wed, 11 Apr 2001 19:18:05 +0200
At 09:52 11/04/2001 -0700, Gisle Aas wrote:
>It is part of XHTML, because it is part of XML.
>
>A quick test with some HTML browsers I had access to reveals:
>
> Netscape 4.76 don't know about it
> Netscape 6 does
> Konqueror 1.9.8 doesn't known about it
> Lynx 2.8.3 decoded it as ` instead of '
>
>Given this quick survey, I think it would be unwise to just add it to
>HTML::Entities unless we can make it so that it only affects decoding.
>It seems more correct to continue to encode ' as '
Yes, I agree. I thought it would have to be something like that, though on
this box I only have access to Opera 5, Mozilla 0.8, and Konqueror 2.1, all
of which read it fine.
>> It's not a big problem for me as I know how to work around it, and I was
>> inches away from submitting a patches, but I was wondering if there was a
>> good reason why you hadn't included "'" in the list of default encoded
>> characters ? I believe it belongs there with '"', the latter being in the
>> list precisely because of attribute values, which can be delimited by both.
>
>But HTML spec only mentions '"' so I think it makes sense to stick
>with it for now. Especially if we continue to encode ' as '.
I agree that sticking with #39 instead of apos is definitely better for
compatibility, but given that HTML also accepts ' as an attr value
delimiter wouldn't it fit with the principle of least surprise to include '
in the default set ? I can see people dealing with masses of " delimited
attr values working perfectly for a long time, and then suddenly a '
delimite attribute happens and things start to break.
Thanks for the quick answer :)
_______________________________________________________________________
Robin Berjon <robin@knowscape.com> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
-----------------------------------------------------------------------
Design a system that even an idiot will be able to use, and only an idiot
will want to use it.