Where is .attr('style') documented?

Where is .attr('style') documented?

I've run into a function that uses $(el).attr('style'), that seems to bring back all the styles for $(el):

function findStyle(el, attr){  // attr = 'color'
var styles, style, color;
try {
styles = $(el).attr('style');
if (typeof styles !== typeof undefined && styles !== false) {
styles.split(";").forEach(function (e) {
style = e.split(":");
if ($.trim(style[0]) === attr) {
color = $(el).css(attr);
}
});
}
}
catch(err) {}
return color;
}

Does anyone know where this is documented?

Thanks.