Closed
Bug 298998
Opened 20 years ago
Closed 20 years ago
window.parent points to window.self when window has no parent
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jaroslav.zaruba, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Gecko DOM Reference says: window.parent Returns a reference to the parent of the current window or subframe. When you start browser, its window has no parent, has it? So window.parent IMO should be null. But it isn't and points to window.self. What confuses me a bit is that MSIE behaves exactly the same way. :o( Did I get the DOM-Ref wrong? Reproducible: Always Steps to Reproduce: 1. Create page with js-expression (window.parent == window.self). 2. Open that page within a new browser window. Actual Results: Expression is evaluated to TRUE. Expected Results: Expression should be evaluated to FALSE ... ???
| Reporter | ||
Comment 1•20 years ago
|
||
http://mozref.com/reference/objects/Window#parent
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•