George, <!-- comment the javascript --> inside the <script> tags. This should fix it. As for using names, you should be able to reference the element in your javascript by using id instead, however my javascript skills wont allow me to supply you with the actual solution... Regards, Paul
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George L Smyth Sent: Tuesday, September 06, 2005 7:38 PM To: '[email protected]' Subject: [css-d] Strict and Javascript I have been trying to validate http://sesi-md.com/Temp/ without success. I am using <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> as my doctype and things have worked fine in the past. I went ahead and added some JavaScript to the page and now it will not validate because http://validator.w3.org is telling me that the less than sign in my "for" statement is not valid [ for (i = 0; i < 10; i++) { ]. Also, I have to give an image a name so that I can address it, and that is not validating either. Are these actual problems with Strict or is the validator getting confused. I can live with the page not validating, but would just like to understand where the problem lies. Cheers - george Handmade Photographic Images - http://www.GLSmyth.com DRiP Investing - http://DRiPInvesting.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ ----------------------------------------------------------------------- The opinions expressed are those of the individual and not the company. Internet communications are not secure and therefore the company does not accept legal responsibility for the contents of this message. If the reader of this message is not the intended recipient, or the employee responsible for delivering this communication to the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. * This message has been processed by the Clearswift ES Policy Server. * See <http://www.clearswift.com>. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
