Ticket #3093 (closed bug: duplicate)
Attribute selector doesn't work right with style
|Reported by:||ajpiano||Owned by:|
|Keywords:||attribute selector style||Cc:|
One might assume that one would use $("[style]") to find all elements with an inline style attribute, which isn't exactly how it works.
[$("div").length,$("div[style]").length,$("div[class]").length,$("[style]").length]; // returned [48,48,32,959] in a random sample document.