function selected (node) {
    var a = node.getAttribute('class')
    if (a && (a.indexOf('selected') >= 0)) return true
    return false
  }
function selected (node) {
    var a = node.getAttribute('class')
    if (a && (a.indexOf('selected') >= 0)) return true
    return false
  }
function selected ( node ) { var a = node . getAttribute ( 'class' ) if ( a && ( a . indexOf ( 'selected' ) >= 0 ) ) return true return false }
Selection support
Selection support