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?
Object element alternate display
Object element alternate display
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
-
- Senior Member
- Posts: 240
- Joined: Fri Jul 03, 2009 7:20 am
Re: Object element alternate display
Link?
Screenshot of what happens, if relevant?
Screenshot of what happens, if relevant?
Mozilla/5.0 (X11; U; Linux i686; en-AU; rv:1.9.1.2) Gecko/20090803 Ubuntu/9.04 (jaunty) Shiretoko/3.5.2
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Object element alternate display
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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Re: Object element alternate display
I was looking for information on what it's supposed to do before I know whether I actually have a problem first.Link?
Actually, that would be a great design choice. And, apparently, I'm not seeing this placeholder, so I do have a problem.It's a design choice: when NoScript disables objects and frames it replaces them with a clickable placeholder...
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?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Object element alternate display
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?
Have you got NoScript Options|Plugins|Show placeholder icon unchecked, maybe?
If not, could yout try Standard Diagnostic?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Re: Object element alternate display
No! OBJECT blocking.So we're looking at I/FRAME blocking here?
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.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17
-
- Senior Member
- Posts: 240
- Joined: Fri Jul 03, 2009 7:20 am
Re: Object element alternate display
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.
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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Re: Object element alternate display
(
While we're on the subject of OBJECT ... don't know if this is relevant ...
SeaMonkey 1.1.17
)
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; }
)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17