[css-d] ASP.NET and http://validator.w3.org/
The w3 validator clearly is not compatible with Microsoft ASP.NET code. Here is an example - http://www.cargovango.com/start.aspx. All of the code that it flags is generated at run time. It's nothing that a developer adds. It's annoying because I can never say that the code is Valid XHTML 1.0 Transitional. Has anyone else encountered this or similar situations? Regards, Tim __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] ASP.NET and http://validator.w3.org/
Yes, I've encountered this before with PHP. You have to get into the source code and fix it. It's not about what the developer adds. It's about tweaking the ASP (or PHP or JSP or ColdFusion or PERL) code so that it spits out valid XHTML. __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] ASP.NET and http://validator.w3.org/
As the standardista/validatorian of the company I work for, I also have this problem. However, if you google for it, you will find that there is a way to change the default output HTML from asp.net - it's pretty technical, but it is possible. - Jon -Original Message- From: [EMAIL PROTECTED] [mailto:css-d- [EMAIL PROTECTED] On Behalf Of Big Moxy Sent: Wednesday, February 06, 2008 1:41 PM To: CSS Discussion Subject: [css-d] ASP.NET and http://validator.w3.org/ The w3 validator clearly is not compatible with Microsoft ASP.NET code. Here is an example - http://www.cargovango.com/start.aspx. All of the code that it flags is generated at run time. It's nothing that a developer adds. It's annoying because I can never say that the code is Valid XHTML 1.0 Transitional. Has anyone else encountered this or similar situations? Regards, Tim __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] ASP.NET and http://validator.w3.org/
Actually, I stand corrected. The validator is flagging the link to a Spanish translator site: a href=http://64.233.179.104/translate_c?hl=enie=utf-8oe=utf-8langpair=en|esu=http://www.cargovango.com/prev=/language_tools; The code generated by .NET is clean: input type=hidden name=__VIEWSTATE id=__VIEWSTATE value=/wEPDwUKMTk1NTE2NDQ4MA9kFgQCAg88KwAJAQAPFgQeCERhdGFLZXlzFgAeC18hSXRlbUNvdW50AgFkFgJmD2QWAmYPFQcGQjU1MTc1BkI1NTE3NQQyMDAyBEZvcmQIRS0yNTAgSEQABiQ2LDUwMGQCAw88KwAJAQAPFgQfABYAHwECA2QWBmYPZBYCZg8VBwZCMDkwNDMGQjA5MDQzBkIwOTA0MwQyMDA2BUUtMTUwBzQuNiAgVjgHJDExLDkwMGQCAQ9kFgJmDxUHBjE5Mzk3MQYxOTM5NzEGMTkzOTcxBDIwMDUIRzI1MDAgSEQHNi4wICBWOAYkNSw5OTVkAgIPZBYCZg8VBwZDMDE5NTMGQzAxOTUzBkMwMTk1MwQyMDAzCEUtMjUwIEhEBzUuNCAgVjgGJDYsOTk1ZGR22EwtFd/kiyy9vVAJL0xv43czZQ== / input type=hidden name=__EVENTVALIDATION id=__EVENTVALIDATION value=/wEWEAKO/p/dAwKq3vLOBAKq3vLOBAL2xbW7DAKAiqHADgKK4PtQAuz/jNYFApfy9JYFAqj0rMEKAru0guIEAqXDn9gHAob7rXYC3KT34AsC6rHbuwQCztGz6wgChp+xBcqi3H1EuMYmueRpk+PhihUbpA7p / Rob Emenecker wrote: Yes, I've encountered this before with PHP. You have to get into the source code and fix it. It's not about what the developer adds. It's about tweaking the ASP (or PHP or JSP or ColdFusion or PERL) code so that it spits out valid XHTML. __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] ASP.NET and http://validator.w3.org/
Rob, There are some elements of .NET output a developer has no control over. For example, this source code: asp:DataList ID=featuredVehicleList2 RepeatColumns=3 RepeatDirection=Horizontal runat=server ItemTemplate a href=/VehicleDetails.aspx?id=%#DataBinder.Eval(Container.DataItem, Stock Number)% img src=/images/vehicle_images/01_%#DataBinder.Eval(Container.DataItem, Stock Number)%.jpg width=140 height=104 alt=vehicle photo //abr / a href=/VehicleDetails.aspx?id=%#DataBinder.Eval(Container.DataItem, Stock Number)% %#DataBinder.Eval(Container.DataItem, Year)%nbsp;%#DataBinder.Eval(Container.DataItem, Model)%br / %#DataBinder.Eval(Container.DataItem, Engine)%nbsp;%#DataBinder.Eval(Container.DataItem, fldWebPrice)%/a /ItemTemplate /asp:DataList becomes this HTML: table id=featuredVehicleList2 cellspacing=0 border=0 style=border-collapse:collapse; tr td a href=/VehicleDetails.aspx?id=B09043 img src=/images/vehicle_images/01_B09043.jpg width=140 height=104 alt=vehicle photo //abr / a href=/VehicleDetails.aspx?id=B09043 2006nbsp;E-150br / 4.6 V8nbsp;$11,900/a /tdtd a href=/VehicleDetails.aspx?id=193971 img src=/images/vehicle_images/01_193971.jpg width=140 height=104 alt=vehicle photo //abr / a href=/VehicleDetails.aspx?id=193971 2005nbsp;G2500 HDbr / 6.0 V8nbsp;$5,995/a /tdtd a href=/VehicleDetails.aspx?id=C01953 img src=/images/vehicle_images/01_C01953.jpg width=140 height=104 alt=vehicle photo //abr / a href=/VehicleDetails.aspx?id=C01953 2003nbsp;E-250 HDbr / 5.4 V8nbsp;$6,995/a /td /tr /table Rob Emenecker wrote: Yes, I've encountered this before with PHP. You have to get into the source code and fix it. It's not about what the developer adds. It's about tweaking the ASP (or PHP or JSP or ColdFusion or PERL) code so that it spits out valid XHTML. __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] ASP.NET and http://validator.w3.org/
The code generated by .NET is clean: input type=hidden name=__EVENTVALIDATION id=__EVENTVALIDATION value=/wEWEAKO/p/dAwKq3vLOBAKq3vLOBAL2xbW7DAKAiqHADgKK4PtQAuz/jNYFApfy 9JYFAqj0rMEKAru0guIEAqXDn9gHAob7rXYC3KT34AsC6rHbuwQCztGz6wgChp+xBcqi3H1 EuMYmueRpk+PhihUbpA7p / Not sure what doctype you are using, but starting an 'id' attribute with an underscore doesn't validate with xhtml transitional. __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] ASP.NET and http://validator.w3.org/
The w3 validator clearly is not compatible with Microsoft ASP.NET code. Here is an example - http://www.cargovango.com/start.aspx. All of the code that it flags is generated at run time. It's nothing that a developer adds. That's one way to spin it! It's probably more accurate to say 'Microsoft, the owner of ASP.net, has never really made valid XHTML a priority in any of its products' To be fair, ASP.net 2.0 is eons ahead of 1.1 in that area. But, then there's SharePoint...eww... This is a decent ASP.net site that's focuses on web standards: http://aspnetresources.com/ _Darrel __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] ASP.NET and http://validator.w3.org/
There are some elements of .NET output a developer has no control over. For example, this source code: asp:DataList Well, a developer can choose NOT to use a DataList. That said, that somewhat defeats the RAD concepts of using ASP.net + VS.net to whip out code. In ASP.net 1.1 I ended up using a lot of string writers to have full control over my HTML. Tedious and likely overly anal in hindsight. With ASP.net 2.0, there are some more options. Control Adapters are one: http://www.asp.net/cssadapters/ This article might help, too: http://msdn2.microsoft.com/en-us/library/aa479043.aspx -Darrel __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/