W3C home > Mailing lists > Public > www-validator@w3.org > September 2006

Re: value of attribute "ID" invalid: "_" cannot start a name

From: David Dorward <david@dorward.me.uk>
Date: Sun, 17 Sep 2006 01:02:18 +0100
To: Phil Hadley <phil@philiphadley.com>
Cc: www-validator@w3.org
Message-ID: <20060917000218.GA3442@us-lot.org>

On Fri, Sep 15, 2006 at 06:50:52PM -0600, Phil Hadley wrote:
>    I'm finding a potential problem with the HTML Validator.

>    All my ASP.NET (.aspx) pages fail to validate with the following
>    error:
>                value of attribute "ID" invalid: "_" cannot start a name

Which is correct ...
... so the problem is with your ASP.NET, not the validator.

>    However, I have no control over this element on the page because
>    it is dynamically generated by ASP.NET.  

Then you should take up the matter with whomever is responsible for
your ASP.NET code.

>    Surely MS wouldn't generate HTML pages that fail to validate...??



Microsoft has had a reputation for producing software that outputs
some of the worst markup on the market for some time. One of the big
selling points of one of the more recent versions of Frontpage was
that it produced valid markup ... and the advert had syntax errors in
the picture of HTML!

>    Interesting note: Even though these pages don't validate, they are crawled
>    and searchable on Google.

There is lots of broken markup on the WWW, user agents usually come
with large amounts of error correction. Depending on error correction
is a very bad idea though (since it isn't implemented consistently or
to a standard).

David Dorward                                      http://dorward.me.uk
Received on Sunday, 17 September 2006 00:02:33 UTC

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