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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user