T
Thomas 'PointedEars' Lahn
Jim said:Jim said:[...] Thomas 'PointedEars' Lahn [...] wrote:
dan baker wrote:
<SCRIPT LANGUAGE="JavaScript1.1">
That's invalid HTML, [...]
[...]
It's not even invalid HTML.
OK, that was exaggerated. It is not valid HTML 4.01 Strict.
in fact I don't know of any which won't (either taking it as their
default type or understanding the language attribute)
It's not even an IE invention, so I'm not sure where you got the idea.
,--------<http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.1>--------
| language = cdata [CI]
| Deprecated.
Yes, _deprecated_ not non-standard,
ACK
it will only not work at all in non html user agents such as X-Smiles
or SVG UA's. Of course then it would be ignored.
Depends on what you call `work'. It will not work in Mozilla/5.0 and
IE 6 *as* *assumed*, because those user agents don't care what version
you specify there, they execute that code anyway. On the other hand,
IE 5 (which I can't test here) won't execute code that is within
language="JavaScript1.3" (or greater) as stated by Richard.
No they weren't Microsoft has always considered them distinct,
URL?
it was only Netscape documentation that didn't. If you look at the CLJ
FAQ from July 1998, you'll see that there's a question "What is the DOM"
if it didn't exist until October, they're pretty f'ing prescient.
The first working draft of W3C-DOM Level 1 dates from about a year earlier,
09-Oct-1997.
There's no requirement that variables be part of a global object
called window, [...] I also know of UA's which don't put their
global variable as part of the window object and the above check
would fail - I wouldn't recommend doing it)
You are right, the proper way is
window.myrefresh = window.setTimeout(...);
No, that is not correct, for the same reasons I gave before (window
does not _have_ to be the global object name) [...]
Read again. I create a new property for the `window' object and assign
the result of window.setTimeout(...) which is in fact only an integer.
Then I can use that property value as argument for window.clearTimeout(...)
without any problems. I could use `foobar' instead of `window' and it
will of course still work as long as `foobar' exists.
No, Please name such a UA,
MyTinyBrowserWhichIWriteNow supports JavaScript, but
only HTML 3.2 for a faster Web experience. And now?
There are no user agents supporting only HTML 3.2.
This is false by definition, there *must* *be* UAs supporting only HTML 3.2,
because HTML 4.0 dates from December 1999 (and -- because you go for dates
-- the first working draft that mentions event handlers from 17-Sep-1997).
They *may* *be* not of the recent ones, but they *exist* anyway.
PointedEars