Question regarding W3C validator and ASP.NET

Can anyone help me with a query regarding validation of asp.net pages.
I've searched these mailing lists but nobody seems to have answered this
exact question.

 

Basically, ASP.NET 2.0 can enhance the way pages are rendered in order
to conform with xhtml 1.0 strict, using a configuration setting. This
has the effect of removing the 'name' attribute from the form element,
wrapping the hidden asp.net fields in a 'div' element and some other
changes.

 

The issue with the hidden fields is that the ID's start with an
underscore character e.g "__VIEWSTATE", however what I can't understand
is how wrapping the fields in an outer 'div' results in a 'pass' from
the validation service? Surely the ID's still start with an underscore
character regardless of the fact they're in a containing element?

 

Can anyone shed any light on this?

 

Matt Salmon
Head of Programming 

 

Liverpool Science Park
131 Mount Pleasant
Liverpool L3 5TF 

t: +44 (0) 845 365 4040
f: +44 (0) 845 365 4041
w: www.mandogroup.com <http://www.mandogroup.com/>  

Mando Group Ltd
Registered in England 04391789 

 

________________________________

The contents of this email are strictly private and confidential and are
intended solely for the named addressee[s] only. If you are not the
intended recipient, you should not copy it or use it for any purpose,
nor disclose its contents to any other person and you should return this
message to the sender and delete it from your mailbox. The views and
opinions expressed in this email do not necessarily represent those of
Mando Group. Please note that whilst Mando Group does check for viruses,
it is the responsibility of the recipient to scan all messages prior to
opening them. 

________________________________

 

Received on Tuesday, 2 June 2009 08:27:03 UTC