W3C home > Mailing lists > Public > www-validator@w3.org > May 2007

Re: [VE][125] w3c issue - please give a solution

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 18 May 2007 09:58:12 +0300 (EEST)
To: "Arun [Kenriche]" <arun@kenriche.com>
cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.64.0705180950030.17303@mustatilhi.cs.tut.fi>

On Fri, 18 May 2007, Arun [Kenriche] wrote:

> Validating http://www.digitalsolutionsltd.com/Index.aspx
> Error [125]: "value of attribute Y invalid: X cannot start a name"

I think the specific error message is rather clear:

Error  Line 80 column 44: value of attribute "ID" invalid: "_" cannot 
start a name.

...type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" 

It is possible that you violated the naming convention for this attribute. 
For example, id and name attributes must begin with a letter, not a digit.

The value of the id attribute must be, by the formal syntax rules that the 
validator checks against, an identifier. The identifier syntax somewhat 
varies from HTML version to another, but no version allows the low line 
(underline) "_" character as the _first_ character of an identifier.

In this case, you can simply remove the attribute id="__VIEWSTATE", unless 
you use it e.g. in scripting. (It does not affect the form data at all; 
the form data is constructed from name/value pairs where the name is specified 
in a name="..." attribute.) If it is needed, then it (and references to 
it) should be fixed so that it begins with a letter, e.g. VIEWSTATE or

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 18 May 2007 06:58:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:52 UTC