W3C home > Mailing lists > Public > www-validator@w3.org > August 2004

Re: [VE][81] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 27 Aug 2004 11:10:00 +0300 (EEST)
To: Jesper <jesper@nitrolic.com>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0408271104370.4739@korppi.cs.tut.fi>

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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:08 UTC