Closed Bug 465112 Opened 17 years ago Closed 17 years ago

"instanceof Object" yields false for contentDocument of iframe

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 339884

People

(Reporter: svdb+bugzilla.mozilla.org, Unassigned)

References

()

Details

Attachments

(1 file)

879 bytes, application/xhtml+xml
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3 "frame.contentDocument instanceof Object" yields false when "frame" is an HTMLIFrameElement. Reproducible: Always Steps to Reproduce: 1. Create an iframe with a page in it which falls within the same origin policy of the parent document. about:blank will do. 2. With JavaScript, get the contentDocument of the frame 3. use the "instanceof" operator on it with "Object": "frame instanceof Object" Actual Results: "instanceof" yields false here. Expected Results: "instanceof" should yield true here.
Attached file test case —
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: