Re: Doesn't the ALT field of an image support ä?

Paul Prescod <papresco@csclub.uwaterloo.ca> wrote:
>At 12:57 PM 4/26/96 -0500, Foteos Macrides wrote:
>>	ALT is declared as CDATA, and the original CERN libwww
>>SGML parser, upon which Lynx was based, requiring RCDATA for
>>translation of character entities, which is why I had assumed
>>the problem was old Lynx code.
>
>Just to be clear: CDATA in attributes and CDATA in element conet are very
>different. CDATA in attributes behaves like RCDATA in element content.

	Yes, but the library's parser doesn't respect that distinction.
Try the LineMode browser built with the vanilla W3C Reference Library
on this:

<title>&lt;Title&gt;</title>
<img src="foo.gif" alt="&lt;foo&gt;">

The entities will be translated in the title, but not in the alt.

				Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 MACRIDES@SCI.WFBR.EDU         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================

Received on Friday, 26 April 1996 14:23:43 UTC