Closed Bug 228494 Opened 22 years ago Closed 20 years ago

window.parent " When a window is loaded in a frameset, its parent is . "

Categories

(Documentation Graveyard :: Web Developer, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Unassigned)

References

()

Details

window.parent When a window is loaded in a frameset, its parent is . is ... what? here's what i expect: javascript:window.parent==window true data:text/html,<frameset><frame src="javascript:window.parent==window"> false
Blocks: 93108
Actually I believe that (window.parent == window) should ALWAYS be evaluate to FALSE. How parent of the window and the window itself can ever be the same objects? (No matter where the expression is evaluated.) But Mozilla/Gecko/Firefox (or whatever) evaluates this expression to TRUE when a window has no parent (which I believe is bug, and that's how I came to this particular bug-report :o) ... May be I'm wrong but I think this bug-report should be marked as INVALID. have a nice day Yaroukh
yaroukh@email.cz: you happen to be wrong, try it in ie.
(In reply to comment #2) > yaroukh@email.cz: you happen to be wrong, try it in ie. If you are talking about the fact that also MSIE evaluates that comparation to TRUE, than that's what I've noted in my bug-report too; still I believe it's not proper behaqviour.
here's the bug-report: https://bugzilla.mozilla.org/show_bug.cgi?id=298998 If you could explain to why is it that non-frame window has itself as a parent (in "parent" property) I would be grateful. (I mean it; I don't think of myself as a programmer-guru.) thanks in advance have a nice day Yaroukh
http://mozref.com/reference/objects/Window#parent (now I would only like to know Why? :o)
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.