![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm having problems embedding alternative content with nested OBJECT tags. Take a look at <http://www.japanesetranslator.co.uk/chihiro/map.html |
#3
| |||
| |||
|
|
Although I've built the page according to the HTML specs for nested objects, it seems to fall apart completely in IE 5.1/Mac, which displays all three graphics versions (but not the ASCII art, for some reason). Am I doing something wrong? |
|
Is there an easy fix for the IE problem? |
|
Does the same thing happen in IE/Windows? |
#4
| |||
| |||
|
|
Does the same thing happen in IE/Windows? Probably, IE/Win doesn't handle object elements properly, nested or otherwise. Various Opera versions also have trouble with nested objects. |
#5
| |||
| |||
|
|
I never realised the support for objects was still so pathetic. (How old is HTML 4.01 now? 6 years?) |
|
I've added Opera to the sniffing conditions. Is there any authoritative info out there on which browsers support object nesting? |
|
At the moment I'm weeding out IE versions 5-6 and Opera versions 5-8 |
#6
| |||
| |||
|
|
Philip Ronan <invalid (AT) invalid (DOT) invalid> wrote: At the moment I'm weeding out IE versions 5-6 and Opera versions 5-8 Browser sniffing is fundamentally flawed. That said IIRC only Opera v7.5x has problems with nested objects. |
#7
| |||
| |||
|
|
"Philip Ronan" wrote: Hi, I'm having problems embedding alternative content with nested OBJECT tags. Take a look at <http://www.japanesetranslator.co.uk/chihiro/map.html Update: Since the page is live, I've had to resort to UA sniffing |
#8
| ||||||
| ||||||
|
|
On Fri, 7 Oct 2005, Philip Ronan wrote: Since the page is live, I've had to resort to UA sniffing "If that was the answer, it must have been a silly question". You don't say how you're trying to do that, but I don't see any javascript trying to do it on the client side |
|
and, since the HTTP response contains no Vary: header, if your machinery is on the server-side then it isn't correct, since the cache server will treat the non-MSIE response as cacheable, and then serve it out to whoever asks for it, no matter which browser they are using. |
|
Anyway, server-side negotiation on the user agent string is basically crazy. |
|
There's really only two successful strategies for doing something like that, IMHO. 1. capitalise on known bugs in the affected browser versions... |
|
2. use the MS-defined "conditional comments"... |
|
In either case, your source code would be a static page with no server-side machinery needed, and no negative implications for cacheability. |
#9
| |||
| |||
|
|
2. If the browser in question is MSIE, as it usually seems to be (and evidently is in this case), then use the MS-defined "conditional comments", which, if used carefully, can be harmless to WWW-compatible browsers. |
#10
| |||
| |||
|
|
On Fri, 7 Oct 2005 10:56:44 +0100, "Alan J. Flavell" flavell (AT) ph (DOT) gla.ac.uk> wrote: 2. If the browser in question is MSIE, as it usually seems to be (and evidently is in this case), then use the MS-defined "conditional comments", which, if used carefully, can be harmless to WWW-compatible browsers. Is that "if used carefully" just a general caveat, or have you some particular case in mind where attempts to use conditional comments screwed up other browsers? |
|
(I do use them, so I'd like to know of anything particular that needs to be watched out for.) |
![]() |
| Thread Tools | |
| Display Modes | |
| |