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

List:       kde-commits
Subject:    branches/KDE/4.0/kdelibs/khtml/ecma
From:       David Faure <faure () kde ! org>
Date:       2008-02-12 10:37:03
Message-ID: 1202812623.616297.17350.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 774007 by dfaure:

Fix crash on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/LNK4006.asp


 M  +1 -1      kjs_html.cpp  


--- branches/KDE/4.0/kdelibs/khtml/ecma/kjs_html.cpp #774006:774007
@@ -409,7 +409,7 @@
     case Width: // NS-only, not available in IE
       return jsNumber(view ? view->contentsWidth() : 0);
     case Dir:
-      return jsString(body->getAttribute(ATTR_DIR));
+      return body ? jsString(body->getAttribute(ATTR_DIR)) : jsUndefined();
     case Frames:
       if ( win )
         return win->frames(exec);
[prev in list] [next in list] [prev in thread] [next in thread] 

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