Why attribute selector span[style*=red] doesn't work ?

Why attribute selector span[style*=red] doesn't work ?

Hi all,

I need to scrape red colored span's from the page; here's the test:

var html = "<SPAN style='color:red;'>warning</SPAN>"
var warnings = $(html).find("span[style*=red]").length;

warnings == 0 after this code, while it's expected to be 1. What's wrong ?