private void appendAttribute(Tag tag, String text) {

        if (tag.getTagName().equals("IMG")) {
            appendText(text);
        } else {
            String current = m_attributeMap.get(tag);
            if (current != null) {
                text = current + text;
            }
            m_attributeMap.put(tag, text);
        }
    }
private void appendAttribute ( Tag tag , String text ) { if ( tag . getTagName ( ) . equals ( "IMG" ) ) { appendText ( text ) ; } else { String current = m_attributeMap . get ( tag ) ; if ( current != null ) { text = current + text ; } m_attributeMap . put ( tag , text ) ; } }
Appends an attribute.<p>

@param tag the tag
@param text the attribute text