Closed Bug 26702 Opened 25 years ago Closed 25 years ago

iframe's document object has no properties

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 17351

People

(Reporter: myk, Assigned: vidur)

References

()

Details

Attachments

(1 file)

Overview Description: An IFRAME has a document object which should contain a standard set of properties and methods. However, attempts to access f.e. the open() method of an IFRAME's document object result in the following JavaScript error: JavaScript Error: TypeError: top.frames.myFrame.document has no properties Steps to Reproduce: (see attached test case) 1) Create an HTML page with an IFRAME. 2) Access a method of that IFRAME's document object. Actual Results: JavaScript error. Expected Results: Successful call to the method. Build Date & Platform Bug Found: Linux 2000-02-04-08 Additional Builds and Platforms Tested On: none Additional Information: If I loop over all properties of the document object (not in my test case) I find that it has no properties: for (blah in top.frames.myFrame.document) { document.write(blah + '<br>'); } It's a wild shot, but perhaps bug 17351 has something to do with this bug. Also see bug 26694 (iframe not reflected in top.frames until second iframe inserted) about another problem with iframes i found on the same code base.
Attached file test case (deleted) —
QA Contact: gerardok → ckritzer
You're right - it is the same problem as bug 17351. DUPing this one with the other. I'll test both when I finish the other. *** This bug has been marked as a duplicate of 17351 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified duplicate.
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: