Checking in rods@netscape.com's patch for bug 60049. The implementation of document.clear() in mozilla was incorrectly clearing the whole document, the same method in NS 4.x and IE seem to do nothing so with this patch document.clear() is a nop. r=jst@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@85338 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2180,9 +2180,8 @@ nsHTMLDocument::Open(JSContext *cx, jsval *argv, PRUint32 argc,
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDocument::Clear(JSContext* cx, jsval* argv, PRUint32 argc)
|
||||
{
|
||||
nsCOMPtr<nsIDOMDocument> doc;
|
||||
|
||||
return Open(cx, argv, argc, getter_AddRefs(doc));
|
||||
// This method has been deprecated
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
||||
Reference in New Issue
Block a user