From 9f534be424c1285f83e53cf00c39726d68a6cb04 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 15 Aug 2004 22:24:01 +0000 Subject: Use GetLocalName instead of GetTagName to get the attribute name. Patch by 2004-08-16 Christian Persch * embed/mozilla/EventContext.cpp: Use GetLocalName instead of GetTagName to get the attribute name. Patch by Mikael Brockman, fixes bug #150208. --- embed/mozilla/EventContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embed') 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; -- cgit v1.2.3