classes[i] = null; ids[i] = null;
attributes[i] = null;
  private Style resolveStyle(String selector, List path, HTML.Tag tag)  {    int count = path.size();    String[] tags = new String[count];    String[] ids = new String[count];    String[] classes = new String[count];    for (int i = 0; i < count; i++)      {        Element el = (Element) path.get(i);        AttributeSet atts = el.getAttributes();        if (i == 0 && el.isLeaf())          {            Object o = atts.getAttribute(tag);            if (o instanceof AttributeSet)              atts = (AttributeSet) o;            else              atts = null;          }        if (atts != null)          {            HTML.Tag t =              (HTML.Tag) atts.getAttribute(StyleConstants.NameAttribute);            if (t != null)              tags[i] = t.toString();            else              tags[i] = null;            if (atts.isDefined(HTML.Attribute.CLASS))              classes[i] = atts.getAttribute(HTML.Attribute.CLASS).toString();            else              classes[i] = null;            if (atts.isDefined(HTML.Attribute.ID))              ids[i] = atts.getAttribute(HTML.Attribute.ID).toString();            else              ids[i] = null;          }        else          {            tags[i] = null;            classes[i] = null;            ids[i] = null;          }      }    tags[0] = tag.toString();    return resolveStyle(selector, tags, ids, classes);  }