69826 - Flush conten model to access named items

Fixed an assertion.
Added a few more properties for getComputedStyle and did some clean up.
r=heikki, sr=jst


git-svn-id: svn://10.0.0.236/trunk@89299 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2001-03-11 20:47:06 +00:00
parent 63ed571575
commit f755934606
9 changed files with 843 additions and 542 deletions

View File

@@ -580,7 +580,7 @@ nsresult nsHTMLTokenizer::ConsumeAttributes(PRUnichar aChar,CStartToken* aToken,
const nsAReadableString& key=theToken->GetKey();
const nsAReadableString& text=theToken->GetValue();
// support XML like syntax to fix bugs like 44186
if((kForwardSlash==key.First()) && (0==text.Length())){
if(!key.IsEmpty() && kForwardSlash==key.CharAt(0) && text.IsEmpty()) {
aToken->SetEmpty(PR_TRUE);
isUsableAttr=!mDoXMLEmptyTags;
}