[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml
From:       Harri Porten <porten () kde ! org>
Date:       2005-05-21 14:21:52
Message-ID: 1116685312.300608.17101.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 416420 by porten:

emit onload event even if the document has no body element.

BUGS: 105798



 M  +5 -0      trunk/KDE/kdelibs/khtml/ChangeLog  
 M  +1 -2      trunk/KDE/kdelibs/khtml/html/html_documentimpl.cpp  


--- trunk/KDE/kdelibs/khtml/ChangeLog #416419:416420
@@ -1,3 +1,8 @@
+2005-05-21  Harri Porten  <porten@kde.org>
+
+	* html/html_documentimpl.cpp: emit onload event even if the
+	document has no body element (bug #105798).
+
 2005-05-20  Allan Sandfeld Jensen <kde@carewolf.com>
 
         Implement/fix CSS namespace selector and other XHTML fixes.
--- trunk/KDE/kdelibs/khtml/html/html_documentimpl.cpp #416419:416420
@@ -251,8 +251,7 @@
 
     DocumentImpl::close();
 
-    HTMLElementImpl* b = body();
-    if (b && doload) {
+    if (doload) {
 
         if (title().isEmpty()) // ensure setTitle is called at least once
             setTitle( DOMString() );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic