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);