Because name
is a property of dom element object where are http-equiv
is not, it is an attribute value which is not copied as a property so try
var meta2 = $('meta[http-equiv]').filter(function() {
console.log($(this).attr('http-equiv'));
});
Attributes like name
, id
, value
has corresponding property matches in the dom element reference, so those values will get copied to the properties of the dom element reference and this
inside the filter refers to the dom element