Java applet not found (problem in the official DOM testsuite)

Dirk Mueller mueller at kde.org
Thu Jan 9 23:56:02 GMT 2003


On Fre, 10 Jan 2003, Koos Vriezen wrote:

> With the OBJECT tags it looks like there is never a request for loading an
> applet. Looks like an error in khtml.

does this help?

Index: html_objectimpl.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/html/html_objectimpl.cpp,v
retrieving revision 1.95
diff -u -5 -d -p -r1.95 html_objectimpl.cpp
--- html_objectimpl.cpp	23 Oct 2002 17:03:31 -0000	1.95
+++ html_objectimpl.cpp	9 Jan 2003 23:55:21 -0000
@@ -409,11 +409,11 @@ void HTMLObjectElementImpl::attach()
         if (part->url() == u) {
             loadplugin = false;
             break;
         }
 
-    if (loadplugin && parentNode()->renderer()) {
+    if ((url.isEmpty() || loadplugin) && parentNode()->renderer()) {
         needWidgetUpdate = false;
         m_render = new RenderPartObject(this);
         m_render->setStyle(getDocument()->styleSelector()->styleForElement(this));
         parentNode()->renderer()->addChild(m_render, nextRenderer());
     }


-- 
Dirk (received 28 mails today)




More information about the kfm-devel mailing list