Page 1 of 1

Object element alternate display

Posted: Sun Aug 16, 2009 10:29 pm
by clamshell
In testing a page that uses the object tag (which is the XHTML standard equivalent to iframe), I discovered that when the object element is blocked by Noscript, the "alternative content" inside the element was not displayed (as it would be on a browser which would not understand the element).

Without this, it took me forever to realize that the reason my page wasn't working was because of NoScript.

Is this a bug? a feature? Something that only I can reproduce?

Re: Object element alternate display

Posted: Mon Aug 17, 2009 8:11 am
by Grumpy Old Lady
Link?
Screenshot of what happens, if relevant?

Re: Object element alternate display

Posted: Mon Aug 17, 2009 9:33 am
by Giorgio Maone
It is not exactly a feature nor exactly a bug. It's a design choice: when NoScript disables objects and frames it replaces them with a clickable placeholder using the same space and layout as the disabled item. If you click it, you get the original content. Under this conditions, it would be problematic displaying also the alternate content, whose usefulness would be debatable however since your browser is still capable of displaying the content, which is just deferred.

Re: Object element alternate display

Posted: Tue Aug 18, 2009 3:47 am
by clamshell
Link?
I was looking for information on what it's supposed to do before I know whether I actually have a problem first.
It's a design choice: when NoScript disables objects and frames it replaces them with a clickable placeholder...
Actually, that would be a great design choice. And, apparently, I'm not seeing this placeholder, so I do have a problem.

I can reproduce it on this site: http://www.w3schools.com/media/tryit.as ... pageobject. When I load this up (before unblocking scripts with noscript), I see nothing on the right side (except the header), not even a placeholder. Is there a way to attach screenshots here?

Re: Object element alternate display

Posted: Tue Aug 18, 2009 7:43 am
by Giorgio Maone
It does display the placeholder as expected for me.
Have you got NoScript Options|Plugins|Show placeholder icon unchecked, maybe?
If not, could yout try Standard Diagnostic?

Re: Object element alternate display

Posted: Tue Aug 18, 2009 2:19 pm
by therube
So we're looking at I/FRAME blocking here?
No! OBJECT blocking.
Looks not to be working in Gecko 1.8. No placeholder. (Neither SeaMonkey 1.1.17 nor FF2. Works in SeaMonkey 2 & FF35.)


Some other test pages:

http://haignet.co.uk/object-image-map.htm
http://www.robinlionheart.com/stds/html4/objects


(To note: I have 1.9.8.1 in SeaMonkey 1.1.17, & various <older?> versions in other browsers.)

Re: Object element alternate display

Posted: Tue Aug 18, 2009 3:41 pm
by Grumpy Old Lady
All run with placeholders here.
But note the very squashed placeholders in the first example
http://haignet.co.uk/object-image-map.htm linked to by therube
http://farm4.static.flickr.com/3478/383 ... 272b_o.gif

To post screenshots, I just upload to flickr and link to them.
It's an old habit from low bandwidth days.
Others here mark them up for us.

Re: Object element alternate display

Posted: Tue Aug 18, 2009 4:30 pm
by therube
(
While we're on the subject of OBJECT ... don't know if this is relevant ...

Code: Select all

Security Error: Content at javascript:object, embed { display: none; } may not load data from http://www.youtube.com/watch?v=P_NqXSbh5Ns

Code: Select all

Error: missing ; before statement
Source File: javascript:object, embed { display: none; }
Line: 1, Column: 14
Source Code:
object, embed { display: none; }
SeaMonkey 1.1.17
)