implement window.frames

This commit is contained in:
Rohan Prinja 2014-08-30 02:07:33 +05:30
parent db05417a25
commit fd09df71a4
3 changed files with 6 additions and 5 deletions

View file

@ -195,6 +195,11 @@ impl<'a> WindowMethods for JSRef<'a, Window> {
self.Window()
}
// http://www.whatwg.org/html/#dom-frames
fn Frames(&self) -> Temporary<Window> {
self.Window()
}
fn Parent(&self) -> Temporary<Window> {
//TODO - Once we support iframes correctly this needs to return the parent frame
self.Window()