bug 256731: unclosed userdefined tags inside phrasal tags cause the phrasal tags to be unable to close. r=rbs sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@164399 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2069,8 +2069,12 @@ eHTMLTags nsHTMLElement::GetCloseTargetForEndTag(nsDTDContext& aContext,PRInt32
|
||||
if(IsMemberOf(kPhrase)){
|
||||
|
||||
while((--theIndex>=anIndex) && (eHTMLTag_unknown==result)){
|
||||
eHTMLTags theTag=aContext.TagAt(theIndex);
|
||||
if(theTag!=mTagID) {
|
||||
eHTMLTags theTag = aContext.TagAt(theIndex);
|
||||
if(theTag != mTagID) {
|
||||
// Allow phrasals to close userdefined tags. bug 256731
|
||||
if(eHTMLTag_userdefined == theTag) {
|
||||
continue; // We can close this.
|
||||
}
|
||||
|
||||
//fixes a derivative of bug 22842...
|
||||
if(CanContainType(kBlock)) { //INS/DEL can contain blocks.
|
||||
|
||||
Reference in New Issue
Block a user