W3C home > Mailing lists > Public > www-validator@w3.org > April 2005

Re: [VE][63] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 20 Apr 2005 08:08:16 +0300 (EEST)
To: Curt.Brown@pobox.com
Cc: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <Pine.GSO.4.58.0504200801410.23021@korppi.cs.tut.fi>

On Tue, 19 Apr 2005, Curtis Brown wrote:

> I get the following four errors when trying to validate:
> http://www.spectraldesign.net/ but I think the problem is in the
> validator routine.

It isn't, and it seems that you have found the problem in your markup,
since the page now validates.

>       | <option value="Design" />*D*esign|

The problem was that you had used the "/" character inside the tag,
making the tag "self-closing". The markup

<option value="Design">Design</option>

(which you have now) is correct.

Although <option value="..." /> would as such be valid, it
would be equivalent to <option value="..."></option>, so that
the text of the option would be empty. Moreover this would
violate the recommend to use "self-closing" tags only for
elements with _declared_ EMPTY content such as img or br
(i.e. for elements that _cannot_, by XHTML syntax rules,
have any content).

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Wednesday, 20 April 2005 05:08:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT