RobG wrote:
> Firefox is certainly picky about
> type attributes, but Safari quite happily executes:
>
> <script type="text/Jscript">
> alert('hi');
> </script>
Oh that Safari...

Is there anything this browser (does)&&(does it properly) ? Most of the
time this expression returns false AFAICT.
But you are right, both Safari and Opera do try to execute text/Jscript
as if they indeed had some JScript engine. At the same time Opera
ignores say "text/foobar". So it does recognize the type attribute, it
is just another case of UA spoofing some wannabes are so badly known
for.
So I take my words back about "text/Jscript" bulletproofness. For a
really extended coverage there is only text/javascript with conditional
compilation (IE). I see the most known way right now as
if(window.ActiveXObject), but I wouldn't count on it on a long run:
from my observations as soon as some "reliable" property check goes
into wide use, the spoofing gang adds a loophole for that in their
engines.
Thanks again for your correction.
> I have also had issues where the type attribute is missing, though I've
> never been able to create a test case to prove it - it wasn't my code,
> so maybe I'm wrong about the cause.
You must be thinking of something like:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<script type="text/vbscript">
MsgBox("Hi!")
</script>
<script>
// IE now expects VBScript code by default,
// so you get "Syntax error" on the next line
window.alert('Hi!');
</script>
</head>
<body>
</body>
</html>
That's a rather artificial issue with a developer explicetly trying to
make UA dizzy (a la the "Korean issue" in IE) yet theoretically
possible.