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:
jst%netscape.com
2001-01-23 02:20:33 +00:00
parent efc0f73ba5
commit a12de9afe9
2 changed files with 4 additions and 6 deletions

View File

@@ -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