Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Firefox rendering text content within OBJECT
February 19, 2008, 7:33 pm
rate this thread
within the OBJECT element.
View this page on IE and the text will not be rendered to screen.
View it in Firefox and it will.
I've checked this with users of Safari, Opera, IE 6 and IE 7.
The W3C documentation clearly describes a sort of "if-elseif-else"
rendering of OBJECT where the text is only supposed to display if all
else fails with the other items before it within the parent OBJECT
Please sanity check this in case it is just my version of FF that is
I am using Firefox/126.96.36.199 (the latest version)
Re: Firefox rendering text content within OBJECT
IMHO it's not FF, but your code that causes the problem.
FF can't do much with the outer object - it doesn't have a 'type'
attribute and no 'data', but the ugly and rather Windows-specific
'classid' instead. Pretty useless. So since FF can't handle that, it
renders the content of the outer object instead, which means the inner
object and the text which follows it. Perfectly correct behaviour.
But why do you use such an ugly construct at all? The most simple
<param name="movie" value="example.swf">
Alternative non-Flash content
should work in all modern browsers and even in IE 6. No need for a CC
workaround or any platform-specific attributes.