jquery/jquery-color

Error in browsers that do not support rgba when applying backgroundColor to detached DOM node

Closed this issue · 4 comments

As the title. In IE 7 for example, try

$('<div />').css('backgroundColor', 'rgba(199,199,199,0.5)')

'Object required'

This is because the backgroundColor css set hook tries to use elem.parentNode, and as the node doesn't have a parent then the error occurs.

Have you tested this against the jQuery-color in master? Can you create a test case on jsFiddle?

It sounds an awful lot like the bug I fixed in 989397c

I am using the master build.

new to jsFiddle, but this exhibits the issue:

http://jsfiddle.net/weGwH/4/

Thanks, I'll look into it soon

Fixed in a00ca7d