G
Guest
ASP.NET generates markup that fails WC3 validation in a number of situations
(below): can anyone suggest a way round these?
1. For Command Buttons, the HTML <INPUT type = Image> element rendered has a
border=0 attribute. This needs to be rendered as a style attribute to pass
validation.
2. Also for Command Buttons, when there is a validation control on the page,
the javascript that is rendered for the button doesn't have a
"type=text/javascript" attribute and this fails validation.
Are these behaviours hard-coded into the web controls, or can they be
configured somehow? Is there any other way round it?
(below): can anyone suggest a way round these?
1. For Command Buttons, the HTML <INPUT type = Image> element rendered has a
border=0 attribute. This needs to be rendered as a style attribute to pass
validation.
2. Also for Command Buttons, when there is a validation control on the page,
the javascript that is rendered for the button doesn't have a
"type=text/javascript" attribute and this fails validation.
Are these behaviours hard-coded into the web controls, or can they be
configured somehow? Is there any other way round it?