Commit a133859b authored by harishd%netscape.com's avatar harishd%netscape.com
Browse files

103095 - Do not ignore '/', in short hand tags, in viewsource [ fixing regression ].

r=peterv, sr=jband.
parent 63715358
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -629,7 +629,7 @@ nsresult nsHTMLTokenizer::ConsumeAttributes(PRUnichar aChar,CStartToken* aToken,
         // support XML like syntax to fix bugs like 44186
        if(!key.IsEmpty() && kForwardSlash==key.First() && text.IsEmpty()) {
          aToken->SetEmpty(PR_TRUE);
          isUsableAttr = PR_FALSE; // Fix bug 103095
          isUsableAttr = (mFlags & NS_IPARSER_FLAG_VIEW_SOURCE)? PR_TRUE:PR_FALSE; // Fix bug 103095
        }
        if(isUsableAttr) {
          theAttrCount++;
+1 −1
Original line number Diff line number Diff line
@@ -629,7 +629,7 @@ nsresult nsHTMLTokenizer::ConsumeAttributes(PRUnichar aChar,CStartToken* aToken,
         // support XML like syntax to fix bugs like 44186
        if(!key.IsEmpty() && kForwardSlash==key.First() && text.IsEmpty()) {
          aToken->SetEmpty(PR_TRUE);
          isUsableAttr = PR_FALSE; // Fix bug 103095
          isUsableAttr = (mFlags & NS_IPARSER_FLAG_VIEW_SOURCE)? PR_TRUE:PR_FALSE; // Fix bug 103095
        }
        if(isUsableAttr) {
          theAttrCount++;