commit | 5b7a968cc5a797ca384bd717ebe0c7423f3d68a8 | [log] [tgz] |
---|---|---|
author | jlabanca@google.com <jlabanca@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu Sep 03 20:43:19 2009 +0000 |
committer | jlabanca@google.com <jlabanca@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu Sep 03 20:43:19 2009 +0000 |
tree | 68bd695f6a12286ef53beb199da0c79c1fc6daff | |
parent | f2f20a5a347020be8f34e52ba17dc57f8eaca57d [diff] |
Fixes a bug in DOMImplTrident#getTagName() where it does not handle an undefined scope name. Patch by: kerjin2001 Review by: jlabanca git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6081 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/dom/client/DOMImplTrident.java b/user/src/com/google/gwt/dom/client/DOMImplTrident.java index 4bc7ae9..5368da8 100644 --- a/user/src/com/google/gwt/dom/client/DOMImplTrident.java +++ b/user/src/com/google/gwt/dom/client/DOMImplTrident.java
@@ -203,8 +203,7 @@ String tagName = getTagNameInternal(elem); String scopeName = getScopeNameInternal(elem); - if ("html".equalsIgnoreCase(scopeName) - || "undefined".equalsIgnoreCase(scopeName)) { + if ((scopeName == null) || "html".equalsIgnoreCase(scopeName)) { return tagName; }