bug 296237, remove assert in getElementById, use the console service to provide feedback. patch by asqueella@gmail.com, r+sr=jst

git-svn-id: svn://10.0.0.236/trunk@213642 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ted.mielczarek%gmail.com
2006-10-14 19:14:24 +00:00
parent 03093bbacb
commit 51fffcb118
5 changed files with 28 additions and 9 deletions

View File

@@ -2475,10 +2475,7 @@ nsHTMLDocument::GetElementById(const nsAString& aElementId,
return GetElementById(aElementId, aReturn);
}
NS_ASSERTION(!aElementId.IsEmpty(),
"getElementById(\"\") called, fix caller?");
if (mRootContent && !aElementId.IsEmpty()) {
if (mRootContent && CheckGetElementByIdArg(aElementId)) {
e = nsContentUtils::MatchElementId(mRootContent, idAtom);
}
}