Re: [VE][81] Error Message Feedback

On Fri, 27 Aug 2004, Jesper wrote:

> <PARAM NAME="movie"
> VALUE="tags3x_vl.swf?tarframe=_self"&amp;"exbackground=0066FF"
> the & sign is teasing me, your Validator says:
>
> Line 57, column 56: character "&" not allowed in attribute specification
> list

That describes the error from a technical point of view - the quotation
mark before & terminates the attribute value.

> I tried without "&amp;" and everything I could think of.

What do you want the attribute value to be? If
tags3x_vl.swf?tarframe=_self&exbackground=0066FF
then use
VALUE="tags3x_vl.swf?tarframe=_self&amp;exbackground=0066FF"
i.e. your current markup without the inner quotation marks.

If the value should be
tags3x_vl.swf?tarframe=_self"&"exbackground=0066FF
(i.e., with the ampersand inside quotation marks), then use
VALUE="tags3x_vl.swf?tarframe=_self&quot;&amp;&quot;exbackground=0066FF"
or alternatively
VALUE='tags3x_vl.swf?tarframe=_self"&amp;"exbackground=0066FF'
since a quotation mark must not appear as such inside an attribute value
delimited by quotation marks, but you can either write it as the
entity reference &quot; or use apostrophes as delimiters.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Friday, 27 August 2004 08:10:34 UTC