[ 3 posts ]

Emanuele Ciriachi

  • Username: Emanuele_Ciriachi
  • Joined: Thu Jan 13, 2011 2:02 am
  • Posts: 19
  • Location: Londonistan
  • Offline
  • Profile

Node getStyle('borderColor') in IE9

Post Posted: Tue May 22, 2012 4:13 am
+0-
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.

Is this a known problem? Anyone else ever stumbled on this?

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:

Re: Node getStyle('borderColor') in IE9

Post Posted: Tue May 22, 2012 6:06 am
+0-
That's totally a bug, can you file it here please?

http://yuilibrary.com/projects/yui3/new ... onent=Node

Emanuele Ciriachi

  • Username: Emanuele_Ciriachi
  • Joined: Thu Jan 13, 2011 2:02 am
  • Posts: 19
  • Location: Londonistan
  • Offline
  • Profile

Re: Node getStyle('borderColor') in IE9

Post Posted: Tue May 22, 2012 6:51 am
+0-
Done - stored here:

http://yuilibrary.com/projects/yui3/ticket/2532345
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum