Reviewed by john.
* khtml/ecma/kjs_html.cpp:
(KJS::HTMLElement::tryGet): when frameset.<name of frame child> is called, return the window object of the frame child
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8717
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-02-28 Chris Blumenberg <cblu@apple.com>
+
+ Fixed: <rdar://problem/4026639> www.bmw.ca configurator does not work with Safari
+
+ Reviewed by john.
+
+ * khtml/ecma/kjs_html.cpp:
+ (KJS::HTMLElement::tryGet): when frameset.<name of frame child> is called, return the window object of the frame child
+
2005-02-28 Ken Kocienda <kocienda@apple.com>
Reviewed by Chris
return getDOMNode(exec,select.options().item(u)); // not specified by DOM(?) but supported in netscape/IE
}
break;
+ case ID_FRAMESET: {
+ DOM::Node frame = element.children().namedItem(propertyName.string());
+ if (!frame.isNull() && frame.elementId() == ID_FRAME) {
+ DOM::DocumentImpl* doc = static_cast<DOM::HTMLFrameElementImpl *>(frame.handle())->contentDocument();
+ if (doc) {
+ KHTMLPart* part = doc->part();
+ if (part) {
+ Window *window = Window::retrieveWindow(part);
+ if (window) {
+ return Value(window);
+ }
+ }
+ }
+ }
+ }
+ break;
case ID_FRAME:
case ID_IFRAME: {
DOM::DocumentImpl* doc = static_cast<DOM::HTMLFrameElementImpl *>(element.handle())->contentDocument();