 |
 |
iframe works in Safari and Opera, but not in Firefox 3
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2006
Location: here
Status:
Offline
|
|
|
(Last edited by Veltliner; Feb 8, 2009 at 03:14 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2006
Location: here
Status:
Offline
|
|
I solved that issue.
iframe uses a deprecated property name="....".
So I used id instead, which made the iframe accessible for positioning in CSS.
Safari and Opera were OK with this.
Firefox? No. It broke the iframe element. Instead of opening images in a new window, they were opened on a new page.
I added the name="..." to the id, and now it works in Firefox 3, too.
Funny. There's an element that's "deprecated" by W3, which I understand as "don't use it".
It's like chess: you against the browsers to get them to display your design.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2007
Location: WI, United States
Status:
Offline
|
|
I've had crap luck with iFrames in Safari. I'm surprised Firefox was your problem. Anyways, good to hear you got it working.
|
|
12" iBook G4 / Tiger 10.4.11 / 1.2 GHz PowerPC G4 / 512 MB RAM / 30 GB HD / 32 MB Radeon 9200
22" WS / Vista Home Premium SP1 32-Bit / 2.4 GHz Core 2 Quad / 3 GB RAM / 500 GB HD / 512 MB Radeon HD 4850
iPod touch 2G / Version 3.0 / 8 GB
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2004
Location: Copenhagen
Status:
Offline
|
|
Originally Posted by Veltliner
I added the name="..." to the id, and now it works in Firefox 3, too.
Funny. There's an element that's "deprecated" by W3, which I understand as "don't use it".
It’s formally deprecated and will be removed in the next version of XHTML. The W3 recommends the following:
In XML, URI-references [RFC2396] that end with fragment identifiers of the form "#foo" do not refer to elements with an attribute name="foo"; rather, they refer to elements with an attribute defined to be of type ID, e.g., the id attribute in HTML 4. Many existing HTML clients don't support the use of ID-type attributes in this way, so identical values may be supplied for both of these attributes to ensure maximum forward and backward compatibility (e.g., <a id="foo" name="foo">...</a>). [Emphasis mine]
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|