rem: clause.each(function(attribute) { var value = 'element.readAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; }  switch (attribute.operator) { case '=':       conditions.push(value + ' == ' + attribute.value.inspect()); break; case '~=':      conditions.push(splitValueBy(' ') + '.include(' + attribute.value.inspect() + ')'); break; case '|=':      conditions.push( splitValueBy('-') + '.first().toUpperCase() == ' + attribute.value.toUpperCase().inspect() ); break; case '!=':      conditions.push(value + ' != ' + attribute.value.inspect()); break; case '': case undefined: conditions.push('element.hasAttribute(' + attribute.name.inspect() + ')'); break; default:        throw 'Unknown operator ' + attribute.operator + ' in selector'; } }); 
add: (function(v) { Object.extend(v, { href:        v._getAttr, src:         v._getAttr, type:        v._getAttr, action:      v._getAttrNode, disabled:    v._flag, checked:     v._flag, readonly:    v._flag, multiple:    v._flag, onload:      v._getEv, onunload:    v._getEv, onclick:     v._getEv, ondblclick:  v._getEv, onmousedown: v._getEv, onmouseup:   v._getEv, onmouseover: v._getEv, onmousemove: v._getEv, onmouseout:  v._getEv, onfocus:     v._getEv, onblur:      v._getEv, onkeypress:  v._getEv, onkeydown:   v._getEv, onkeyup:     v._getEv, onsubmit:    v._getEv, onreset:     v._getEv, onselect:    v._getEv, onchange:    v._getEv }); })(Element._attributeTranslations.read.values); 
context:       clause.each(function(attribute) {        var value = 'element.readAttribute(' + attribute.name.inspect() + ')';        var splitValueBy = function(delimiter) {          return value + ' && ' + value + '.split(' + delimiter.inspect() + ')';        }        switch (attribute.operator) {          case '=':       conditions.push(value + ' == ' + attribute.value.inspect()); break;          case '~=':      conditions.push(splitValueBy(' ') + '.include(' + attribute.value.inspect() + ')'); break;          case '|=':      conditions.push(                            splitValueBy('-') + '.first().toUpperCase() == ' + attribute.value.toUpperCase().inspect()                          ); break;          case '!=':      conditions.push(value + ' != ' + attribute.value.inspect()); break;          case '':          case undefined: conditions.push('element.hasAttribute(' + attribute.name.inspect() + ')'); break;          default:        throw 'Unknown operator ' + attribute.operator + ' in selector';        }      });
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/2d4247a14ff4ce25ad80cbc65b787dfde7ddb16e/prototype.js/buggy/typo3/contrib/prototype/prototype.js