[
Lists Home |
Date Index |
Thread Index
]
[Joshua Allen]
The best way to find out what scriptable functions are available in a
particular vendor's browser is to look at the browser's documentation.
If the function is documented in MSDN as being supported by IE, then it
should work on IE.
[Tom P]
IE actually supports some DOM2 things but with slightly different names.
For example, a list of css rules, which is properly obtained with
"stylesheet.cssRules", can be gotten in IE as "stylesheet.rules". You can
make this work for both compliant browsers and IE by using
rules=stylesheet.rules||stylesheet.cssRules
The way javascript works, this will pick up the rules whichever browesr you
are using. All (well, I do not know that, but at least most) properties and
method names on the rules are the same for both, so downstream code can be
the same.
So it may be that IE supports quite a bit more of DOM2 than the test
indicated, but with these slight name variations. My impression is that it
does.
Cheers,
Tom P
|