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