fix RTM++56085 crasher; r=attinasi, sr=buster
git-svn-id: svn://10.0.0.236/trunk@81095 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -891,7 +891,7 @@ nsresult CNavDTD::DidHandleStartTag(nsCParserNode& aNode,eHTMLTags aChildTag){
|
||||
|
||||
//handle <empty/> tags by generating a close tag...
|
||||
//added this to fix bug 48351, which contains XHTML and uses empty tags.
|
||||
if(nsHTMLElement::IsContainer(aChildTag)) {
|
||||
if(nsHTMLElement::IsContainer(aChildTag) && aNode.mToken) { //nullptr test fixes bug 56085
|
||||
CStartToken *theToken=NS_STATIC_CAST(CStartToken*,aNode.mToken);
|
||||
if(theToken->IsEmpty()){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user