getElementsByTagName missing from DOM class.

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

diff --git a/user/src/com/google/gwt/user/client/DOM.java b/user/src/com/google/gwt/user/client/DOM.java
index 03721b8..ddbac26 100644
--- a/user/src/com/google/gwt/user/client/DOM.java
+++ b/user/src/com/google/gwt/user/client/DOM.java
@@ -751,6 +751,17 @@ public class DOM {
   }
 
   /**
+   * Gets all the elements with the given tag name within the entire
+   * document.
+   * 
+   * @param tagName the HTML tag name whose associated elements are to be retrieved
+   * @return the associated elements, or <code>null</code> if none is found
+   */
+  public static NodeList<Element> getElementsByTagName(String tagName) {
+    return Document.get().getElementsByTagName(tagName).cast();
+  }
+
+  /**
    * Gets any named property from an element, as a string.
    * 
    * @param elem the element whose property is to be retrieved

Reply via email to