Re: [WSG] simple javascript question
Hi Ted, I think it really depends on the doctype (i.e (X)HTML Strict or Transitional) of the document. In Strict Doctypes the attribute "language" is deprecated in script elements. See this quick guide: http://www.zvon.org/xxl/xhtmlReference/Output/comparison.html However in transitional/ loose doctypes the attribute is allowed. The "type" attribute is the only required attribute for the script element Check this: http://www.zvon.org/xxl/xhtmlReference/Standard/interact/scripts.html#edef-SCRIPTTed Drake [EMAIL PROTECTED] wrote: Is this validlanguage="_javascript_" type="text/_javascript_"or should I just have type only. I'm afraid of breaking any functions that might require the language.Ted**The discussion list for http://webstandardsgroup.org/See http://webstandardsgroup.org/mail/guidelines.cfmfor some hints on posting to the list getting help**__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[WSG] simple javascript question
Is this valid language=JavaScript type=text/javascript or should I just have type only. I'm afraid of breaking any functions that might require the language. Ted ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] simple javascript question
Hi Ted, I'm no javascript expert, but I believe language=javascript is deprecated and no longer really required anyway. I only use 'type' and haven't found any scripts breaking. Cheers Jason. On Fri, 19 Nov 2004 09:34:28 -0800, Ted Drake [EMAIL PROTECTED] wrote: Is this valid language=JavaScript type=text/javascript or should I just have type only. I'm afraid of breaking any functions that might require the language. Ted ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** -- Jason Foss Almost Anything Desktop Publishing www.almost-anything.com.au Windows Messenger: [EMAIL PROTECTED] North Rockhampton, Queensland, Australia We can do almost anything! ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **