code: public Element createDOMNode(Element parent) {
          Element domNode = parent.getOwnerDocument().createElement(tagName);
          LayoutUtil.copyAttributes(attributes, domNode);
          parent.appendChild(domNode);
          return domNode;
      }
docs: Creates a DOM node from this layout node.
  
  @param parent Parent DOM node.
  @return The newly created DOM node.