id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blocking,blockedby
12086,"Checking value for null after using property of value. Method ""attr""",deltaplans@…,deltaplans@mail.ru,"Checking value for null after using property of value.
There is next code (start from 2511 row) in current version (source code, but in min version code is same): 

{{{
 attr: function( elem, name, value, pass ) {
                var ret, hooks, notxml,
                  nType = elem.nodeType;

		// don't get/set attributes on text, comment and attribute nodes
		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
			return;
		}
}}}

   

For getting nType value used elem.nodeType, but elem didn't check for null before. It will checked after that (in the next rows). It seems that it should be lik this: 

{{{


if ( !elem) return;

var ret, hooks, notxml,
                  nType = elem.nodeType;
 if(nType === 3 || nType === 8 || nType === 2 ) {
			return;
		}

}}}


",bug,closed,low,None,attributes,1.7.2,invalid,,,,
