aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/EventContext.cpp4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2bf3fb957..6844de07e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-08-16 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/EventContext.cpp:
+
+ Use GetLocalName instead of GetTagName to get the attribute name.
+ Patch by Mikael Brockman, fixes bug #150208.
+
2004-08-12 Christian Persch <chpe@cvs.gnome.org>
* configure.in:
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 5f5f7e99d..1f7d27bd4 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -250,7 +250,7 @@ nsresult EventContext::GetEventContext (nsIDOMEventTarget *EventTarget,
if ((nsIDOMNode::ELEMENT_NODE == type) && element)
{
nsEmbedString uTag;
- rv = element->GetTagName(uTag);
+ rv = element->GetLocalName(uTag);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
nsEmbedCString tag;
@@ -379,7 +379,7 @@ nsresult EventContext::GetEventContext (nsIDOMEventTarget *EventTarget,
if ((nsIDOMNode::ELEMENT_NODE == type) && element)
{
nsEmbedString uTag;
- rv = element->GetTagName(uTag);
+ rv = element->GetLocalName(uTag);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
nsEmbedCString tag;