• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package autotest.common;
2 
3 import com.google.gwt.dom.client.Element;
4 
5 public class DomUtils {
clearDomChildren(Element elem)6     public static void clearDomChildren(Element elem) {
7         Element child = elem.getFirstChildElement();
8         while (child != null) {
9             Element nextChild = child.getNextSiblingElement();
10             elem.removeChild(child);
11             child = nextChild;
12         }
13     }
14 }
15