return -1;
Element root = doc.getDefaultRootElement(); int num = -1; Element next = root.getElement(root.getElementIndex(offset));  while (!next.isLeaf()) { num++; if (next.getAttributes(). getAttribute(StyleConstants.NameAttribute).equals(tag)) return num; next = next.getElement(next.getElementIndex(offset)); } return num;
      protected int elementCountToTag(HTMLDocument doc,                                      int offset, HTML.Tag tag)      {        // FIXME: Not implemented.        return -1;      }