From 5c4f0fcaeba00e5d1df36030152ecbf3b7d2f2e2 Mon Sep 17 00:00:00 2001 From: "jst%netscape.com" Date: Thu, 14 Sep 2000 04:53:03 +0000 Subject: [PATCH] Fixing nsbeta3+ bug 51034. element.getElementsByTagName() was throwing a NS_NOINTERFACE exception to the wrong IID passed to QI. r=kandrot&pollmann git-svn-id: svn://10.0.0.236/trunk@79061 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsGenericElement.cpp | 2 +- mozilla/layout/base/src/nsGenericElement.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/content/base/src/nsGenericElement.cpp b/mozilla/content/base/src/nsGenericElement.cpp index 59cb0ef20c9..1d571ad3685 100644 --- a/mozilla/content/base/src/nsGenericElement.cpp +++ b/mozilla/content/base/src/nsGenericElement.cpp @@ -840,7 +840,7 @@ nsGenericElement::GetElementsByTagName(const nsAReadableString& aTagname, return NS_ERROR_OUT_OF_MEMORY; } - return list->QueryInterface(NS_GET_IID(nsIDOMNode), (void **)aReturn); + return list->QueryInterface(NS_GET_IID(nsIDOMNodeList), (void **)aReturn); } nsresult diff --git a/mozilla/layout/base/src/nsGenericElement.cpp b/mozilla/layout/base/src/nsGenericElement.cpp index 59cb0ef20c9..1d571ad3685 100644 --- a/mozilla/layout/base/src/nsGenericElement.cpp +++ b/mozilla/layout/base/src/nsGenericElement.cpp @@ -840,7 +840,7 @@ nsGenericElement::GetElementsByTagName(const nsAReadableString& aTagname, return NS_ERROR_OUT_OF_MEMORY; } - return list->QueryInterface(NS_GET_IID(nsIDOMNode), (void **)aReturn); + return list->QueryInterface(NS_GET_IID(nsIDOMNodeList), (void **)aReturn); } nsresult