Ticket #2532345 (new defect)

Reporter


Emanuele Ciriachi
Opened: 05/22/12
Last modified: 05/22/12
Status: new
Type: defect

Owner


Matt Sweeney
Target Release:
Priority:
Summary: IE9: Invoking getStyle('borderColor') on a Node with a borderColor represented by a string, returns an invalid value
Description:

My DOM node has

border-color: gray gray gray blue;

when I invoke getStyle('borderColor') on it, I get "#GRAY GRAY GRAY BLUE", which is wrong.

Perusing through the YUI code, I read that the getStyle() function ends up invoking getBorderColor(), who in turn passes a string representation of the border color ("gray gray gray blue")
to the Y.Color.toHex() method, who in turns gives me the actual value I get as result of getStyle that causes the problem ("#GRAY GRAY GRAY BLUE").
This seems to fall through a conditional statement that is Internet Explorer-specific.

Type: defect Observed in Version: 3.4.1
Component: Node Severity: S3 (normal)
Assigned To: Matt Sweeney Target Release:
Location: Priority:
Tags: IE9, Node, getStyle, borderColor Relates To:
Browsers: IE 9.x
URL: http://yuilibrary.com/forum/viewtopic.php?f=92&t=10042&p=32669#p32669
Test Information:

Create a DOM element (I used a div) with CSS border-color: gray gray gray blue; (for example - it can be any text-specified border color).

Get the Node of that element through YUI and try to invoke getStyle('borderColor') on it: you will get #GRAY GRAY GRAY BLUE, which is an invalid value.