Error in browsers that do not support rgba when applying backgroundColor to detached DOM node
Closed this issue · 4 comments
nrbrook commented
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.
gnarf commented
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
nrbrook commented
I am using the master build.
new to jsFiddle, but this exhibits the issue:
gnarf commented
Thanks, I'll look into it soon