question: boolean matchAttributeSelections ( HTMLElement element ) { if ( getTagId ( ) == TAG_CSS_ILLEGAL_SELECTOR ) { return false ; } if ( attributeSelections == null ) { return true ; } for ( Enumeration e = attributeSelections . elements ( ) ; e . hasMoreElements ( ) ; ) { AttString attStr = ( AttString ) e . nextElement ( ) ; if ( attStr . constraint == AttString . LANG ) { String lang = attStr . value ; String elemLang = getLang ( element ) ; if ( ( elemLang == null ) || ( ( ! lang . equals ( elemLang ) ) && ( ! elemLang . startsWith ( lang + "-" ) ) ) ) { return false ; } } else { String elementVal = element . getAttribute ( attStr . attribute ) ; if ( elementVal == null ) { return false ; } if ( attStr . value != null ) { switch ( attStr . constraint ) { case AttString . EQUALS : if ( ! elementVal . equals ( attStr . value ) ) { return false ; } break ; case AttString . BEGINS_WITH : if ( ( ! elementVal . equals ( attStr . value ) ) && ( ! elementVal . startsWith ( attStr . value + "-" ) ) ) { return false ; } break ; case AttString . CONTAINS_WORD : String str = " " + elementVal + " " ; if ( str . indexOf ( " " + attStr . value + " " ) == - 1 ) { return false ; } break ; } } } } return true ; }
target:  Matches the attribute selections of this selector (if any) to the provided element