title: Difference between getElementById methods from DOM and Document classes
body: <p><code>GWT</code> offers two ways of retrieving an HTML element by its unique <code>ID</code>.</p>
  
  <p>What's the diference (if there is one) between :</p>
  
  <ul>
  <li><strong>DOM.getElementById("divID") :</strong></li>
  </ul>
  
  <blockquote>
    <p>Gets the element associated with the given unique id within the entire
    document.</p>
    
    <p>@param id the id whose associated element is to be retrieved<br>
    @return the associated element, or null if none is found</p>
  </blockquote>
  
  <ul>
  <li><strong>Document.get().getElementById("divID") :</strong></li>
  </ul>
  
  <blockquote>
    <p>Returns the Element whose id is given by elementId. If no such element exists, returns  null. Behavior is not defined if more than one
        element has this id.</p>
    
    <p>@param elementId the unique id value for an element<br>
    @return the matching element</p>
  </blockquote>