[thelist] Confused about what HTML Validation is telling me

MRC webmaster at equilon-mrc.com
Thu Feb 7 16:36:01 CST 2002


Eric, et al,

> but because older browsers don't understand the type attribute, you should
use:
>
> <script language="Javascript" type="text/javascript">

    This is true. Keep in mind, however, that by adding the type attribute,
many browsers will no longer recognize a language value that specifies a
particular version of Javascript. For instance:

<script language="Javascript1.2" type="text/javascript">

    Most browsers will treat this as though the language attribute doesn't
exist, or as though it simply specifies Javascript. While this isn't
generally critical, especially if one is careful to use object detection
whenever possible instead of specifying a particular Javascript version, it
is important to keep in mind just in case. There are rare cases where
specifying a particular Javascript version dictates how the script will
function, and if that is required behavior, using the type attribute could
be very problematic.

James Aylard




More information about the thelist mailing list