SVN commit 1119916 by orlovich: Fix crash on the L3 version of the test. We pass 94.2% of that one (since it just adds stuff for CSS3 functionality) M +2 -2 cssstyleselector.cpp --- trunk/KDE/kdelibs/khtml/css/cssstyleselector.cpp #1119915:1119916 @@ -1245,7 +1245,7 @@ { // Sibling selectors always generate structural dependencies // because newly inserted element might fullfill them. - if (e->parentNode()->isElementNode()) + if (e->parentNode() && e->parentNode()->isElementNode()) addDependency(StructuralDependency, static_cast(e->parentNode())); while(true) { @@ -1262,7 +1262,7 @@ } case CSSSelector::DirectAdjacent: { - if (e->parentNode()->isElementNode()) + if (e->parentNode() && e->parentNode()->isElementNode()) addDependency(StructuralDependency, static_cast(e->parentNode())); DOM::NodeImpl* n = e->previousSibling(); while( n && !n->isElementNode() )