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

This commit is contained in:
jst%netscape.com 2001-01-23 02:20:33 +00:00
Родитель 4f8f2165ba
Коммит 5407409933
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

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

Просмотреть файл

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