On Tue, 7 Dec 2004 14:48:12 +0100, VK <schools_ring (AT) yahoo (DOT) com> wrote:
[snip]
Quote:
1) There is only one browser using TOM, and it will be only one (unless
Mozilla & Co deside to drop standards and follow Microsoft :-). |
If you're dealing solely with IE, then use conditional comments. However,
I can't recall having any problems using the W3C DOM to manipulate table
structures in IE.
[snip]
Quote:
So in this particular case a simple name check MAY be the most reliable
way. |
No, it won't. The very reason for not sniffing is that browsers do fake
their identity, but more often than not, they do not actually emulate that
browser functionally. Your test would pick up Opera if it were spoofing
IE, but Opera only has limited support for the proprietary nonsense that
IE includes.
If you'd rather use Microsoft's proprietary object model, then test for
that before methods and properties of the W3C DOM.
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.