Should not support short-hand-tag notation in HTML. b=102515, r=heikki, sr=jst, a=scc

git-svn-id: svn://10.0.0.236/trunk@116923 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2002-03-20 00:24:00 +00:00
parent e1c6553285
commit d23954672d
2 changed files with 6 additions and 6 deletions

View File

@@ -625,13 +625,13 @@ nsresult nsHTMLTokenizer::ConsumeAttributes(PRUnichar aChar,CStartToken* aToken,
//and a textkey of "/". We should destroy it, and tell the
//start token it was empty.
if(NS_SUCCEEDED(result)) {
PRBool isUsableAttr=PR_TRUE;
PRBool isUsableAttr = PR_TRUE;
const nsAReadableString& key=theToken->GetKey();
const nsAReadableString& text=theToken->GetValue();
// support XML like syntax to fix bugs like 44186
if(!key.IsEmpty() && kForwardSlash==key.First() && text.IsEmpty()) {
aToken->SetEmpty(PR_TRUE);
isUsableAttr = (mFlags & NS_IPARSER_FLAG_VIEW_SOURCE)? PR_TRUE:PR_FALSE; // Fix bug 103095
isUsableAttr = PRBool(mFlags & NS_IPARSER_FLAG_VIEW_SOURCE); // Fix bug 103095
aToken->SetEmpty(isUsableAttr);
}
if(isUsableAttr) {
theAttrCount++;