Skip to main content

Bug Tracker

Side navigation

#5509 closed bug (fixed)

Opened November 13, 2009 09:00PM UTC

Closed October 09, 2010 02:43PM UTC

Last modified March 10, 2012 10:36AM UTC

Setting rgba value as border color makes jquery halt

Reported by: adamkiss Owned by: snover
Priority: critical Milestone: 1.4.3
Component: css Version: 1.4.2
Keywords: ie8, ie7, rgba, css Cc:
Blocked by: Blocking:

If you try to use rgba value as 'border-right-color', IE8 reports error 'Incorrect value of properties' both in standard and IE7-compatible mode.

When trying to use google to find solution, it seems, that if you try to set value of css-property of element to value unknown to browser (IE in most cases), jquery fails.

Using minified version, code is around position: 12949 in following part:


Thank you in advance,

sorry for my english

Attachments (0)
Change History (9)

Changed November 13, 2009 09:04PM UTC by adamkiss comment:1

formatted problematic code:


code calling this function/ setting this values:

$("#nav li:not(:last)").css('border-right','1px solid rgb(249,233,255)').css('borderRightColor','rgba(249,233,255,0.2)');

Changed November 13, 2009 09:06PM UTC by adamkiss comment:2

better formatting of code used, both

$("#nav li:not(:last)")
.css('border-right','1px solid rgb(249,233,255)')


$("#nav li:not(:last)")
.css('border-right','1px solid rgb(249,233,255)')

Changed June 13, 2010 06:35PM UTC by dmethvin comment:3

component: unfiledattributes

IE doesn't support the rgba format, since it also doesn't support opacity. It throws an error since it doesn't recognize the format.

What would be the correct thing to do here? It could be very expensive to try and filter any color value strings being set as css attributes. Pushing the decision back to the caller may be best.

Changed June 15, 2010 02:04AM UTC by dmethvin comment:4

component: attributescss

Changed October 01, 2010 12:42AM UTC by snover comment:5

#7103 is a duplicate of this bug.

Maybe we should add an rgba support test which will allow authors to branch based on support, and just swallow any errors (since normally, invalid CSS is discarded).

Changed October 01, 2010 03:05AM UTC by snover comment:6

owner: → snover
status: newassigned

Changed October 01, 2010 03:05AM UTC by snover comment:7

need: PatchCommit

Changed October 09, 2010 02:43PM UTC by john comment:8

resolution: → fixed
status: assignedclosed

Changed October 15, 2010 09:04PM UTC by snover comment:9

#5790 is a duplicate of this ticket.