code: public ElementBox createBox(ElementBox parent, Element n, String display)
      {
          ElementBox root = null;
          
          //New box style
          NodeData style = decoder.getElementStyleInherited(n);
          if (style == null)
                  style = createAnonymousStyle(display);
          
          //Special (HTML) tag names
          if (config.getUseHTML() && html.isTagSupported(n))
          {
              root = html.createBox(parent, n, viewport, style);
          }
          //Not created yet -- create a box according to the display value
          if (root == null)
          {
              root = createElementInstance(parent, n, style);
          }
          root.setBase(baseurl);
          root.setViewport(viewport);
          root.setParent(parent);
          root.setOrder(next_order++);
          return root;
      }
docs: Creates a single new box from an element.
  @param n The source DOM element
  @param display the display: property value that is used when the box style is not known (e.g. anonymous boxes)
  @return A new box of a subclass of {@link ElementBox} based on the value of the 'display' CSS property