[Javascript] DOCTYPE v JS question

Terry Riegel riegel at clearimageonline.com
Mon Dec 3 09:29:45 CST 2007


The working copy is running in compatibility mode which basically  
means the browser will "assume" it knew what you meant even though  
your code isn't "technically" right. It is better to get your code  
"right" and not let the browser make assumptions about your code.

Terry



On Dec 2, 2007, at 8:56 PM, tedd wrote:

> Hi gang:
>
> Here's two examples:
>
> [1] http://www.webbytedd.com/cc/scale/index.php
>
> [2] http://www.webbytedd.com/cc/scale/index1.php
>
> Both are identical except [2] has a DOCTYPE.
>
> Why does giving this file a DOCTYPE prohibit javascript from running
> in some browsers?
>
> For example, both Safari and FF for the Mac this script fails, but in
> Opera for the Mac it works -- why? And more importantly, how can I
> fix it?
>
> Thanks and Cheers,
>
> tedd
>
> -- 
> -------
> http://sperling.com  http://ancientstones.com  http://earthstones.com
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
>




More information about the Javascript mailing list