code: public final void retag(final Element root, final String selector,
              final String tag) {
          final Iterable<Element> elements; // Elements selected
  
          checkNotNull(root, "Received a null pointer as root element");
          checkNotNull(selector, "Received a null pointer as selector");
          checkNotNull(tag, "Received a null pointer as tag");
  
          // Selects and iterates over the elements
          elements = root.select(selector);
          for (final Element element : elements) {
              element.tagName(tag);
          }
      }
docs: Finds a set of elements through a CSS selector and changes their tags.
  
  @param root
  root element for the selection
  @param selector
  CSS selector for the elements to retag
  @param tag
  new tag for the elements