From: Manu Temmerman-U. <man...@gm...> - 2006-03-21 09:22:12
|
Ok Brian. If I'll find the change I'll check in the change tonight. I hope it won't break any code though... Hmm on second thought... I won't check it in. Could you maybe make some testing for this? If you can assure me that it won't break anything, then I'll check it in. Manu. On 3/21/06, Brian @ AJP <br...@aj...> wrote: > > If you follow the W3C recommendation for HTML and XHTML you will find > that an identifier must *begin* with a letter, not a number or underscore= , > so the ASP.Net 'standard' hidden fields *do* use invalid HTML, and so you > can expect *all* ASP.Net pages to fail this validation test. (I don't kno= w > why Tidy doesn't highlight "__EVENTTARGET" and "__EVENTARGUMENT" - maybe > there's a switch in it that turns a blind eye to it because it knows it's > Microsoft.) > > I suggested a fix for the anthem-generated element IDs by simply changing > a couple of lines of code in manager.cs, but didn't press it because > fixing it seemed pointless in light of the major Microsoft invalidations. > > Now I'm thinking it *should* be fixed while we know about it and how to > fix it. The alternative is to carry on with known invalid generated IDs. = If > Microsoft (newly committed to 'compatibility' and 'standards') issues a > patch to the ASP.Net framework that fixes their invalid IDs, then Anthem > would be left out in the cold and would be to blame for invalidating > otherwise valid mark-up. > > What does the team think? > > > > *Brian Lowe*, AJP Interactive > w: *www.ajpi.co.uk* e: *br...@aj...* f: 07075 167630 > > > > > ------------------------------ > *From:* ant...@li... [mailto: > ant...@li...] *On Behalf Of *Manu > Temmerman-Uyttenbroeck > *Sent:* 21 March 2006 06:32 > *To:* Roberto > *Cc:* ant...@li... > *Subject:* Re: [Anthem.NET-users] Anthem generated code and HTML Tidy > > > > Brian Lowe asked the same question 11th of February. This was my answer > then: > > *Your pages are invalid because of id attributes that start with "__", > correct? > If so, then I'm a little bit confused. In the url you pasted is that the > name and id attributes can only start with letters. Every generated aspx > page contains following html elements: > > <input type=3D"hidden" name=3D"__EVENTTARGET" id=3D"__EVENTTARGET" value= =3D"" /> > <input type=3D"hidden" name=3D"__EVENTARGUMENT" id=3D"__EVENTARGUMENT" va= lue=3D"" > /> > > Does this mean that every generated aspx page is invalid? If so, then I > would putting 'fixing' this in Anthem on the bottom of the priority > list. If I'm wrong, then sorry... Brian? Could you pls let me know your > comment on this? > * > So I have the same question again. The 2 hidden fields generated by asp > are also seen as invalid? > > Manu. > > > On 3/21/06, Roberto <ro...@lt...> wrote: > > > > Hi Guys > > > > I was using the latest builds of Anthem.NET, but I suspect the error ha= s > > been there for a while... It seems u can't validate a page using HTML t= idy > > with Anthem controls since the control names generate ID's such as > > ID=3D"__Button1__" which I think is not allowed in the spec. Below is a= n > > example of the like that gives me a warning in HTML tidy even though it= 's > > not an error it would be cool if it could be fixed. > > > > Does anyone have a fix for this? > > > > <span id=3D"__Button1__"><input type=3D"submit" name=3D"Button1" value= =3D"Start Ajax" onclick=3D"AnthemButton_Click(this,'Button1',true,'Getting = info',false,Button1_PreCallBack,Button1_PostCallBack,null,true,true);return= false;" id=3D"Button1" /></span><span id=3D"ProgressSection" style=3D"visi= bility:hidden;"><img src=3D"images/indicator.gif" border=3D"0" style=3D"ver= tical-align:middle; padding-left:5px; padding-right:2px;" alt=3D"Progress I= con" />Please wait while retrieving information...</span> > > > > line 36 column 9 - Warning: <span> ID "__Button1__" uses XML ID synta > > > > > > > > Regards Rob > > > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.1.385 / Virus Database: 268.2.6/286 - Release Date: > > 20/03/2006 > > > > > > > |