Closed
Bug 421102
Opened 16 years ago
Closed 13 years ago
EMBED tag reference returns "function" when analyzed with typeof
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 268945
People
(Reporter: st777, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 When you want to check a typeof(EMBED tag) it returns a "function" instead of "object". This was discovered when I embedded Flash movie on the page (w/id) and tried to get a reference to it using document.getElementById. Reproducible: Always Steps to Reproduce: 1. Create a blank html page 2. Insert an embed tag into body section with any id you want Ex: <embed id="flv_movie" width="300" height="100" quality="high" bgcolor="#ffffff" name="flv_movie" style="" src="*.swf" type="application/x-shockwave-flash"/> 3. In the javascript (on page load) get a reference to EMBED element by using document.getElementById. Ex: var myEmbed = document.getElementById("flv_movie"); 4. Alert typeof(myEmbed) Ex: alert(typeof(myEmbed)); Actual Results: typeof(myEmbed) returns "function" Expected Results: should return "object"
Comment 1•14 years ago
|
||
This bug was originally reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.6 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME http://www.mozilla.com http://support.mozilla.com/kb/Managing+profiles http://support.mozilla.com/kb/Safe+mode
Whiteboard: [CLOSEME 2010-07-30]
Version: unspecified → 2.0 Branch
Comment 2•14 years ago
|
||
No reply, INCOMPLETE. Please retest with Firefox 3.6.8 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
I tested the same exact setup against latest version of Firefox 3.6.8 and behavior is still the same.
Status: RESOLVED → VERIFIED
Version: 2.0 Branch → 3.6 Branch
Updated•14 years ago
|
Status: VERIFIED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Whiteboard: [CLOSEME 2010-07-30]
Updated•13 years ago
|
Component: General → DOM: Core & HTML
Product: Firefox → Core
QA Contact: general → general
Whiteboard: DUPEME
Version: 3.6 Branch → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago → 13 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in
before you can comment on or make changes to this bug.
Description
•