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

r=peterv, sr=jband.


git-svn-id: svn://10.0.0.236/trunk@110325 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2001-12-12 01:08:51 +00:00
parent 6c8e4bb64d
commit 71e14adc53
2 changed files with 2 additions and 2 deletions

View File

@@ -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++;