> I just ran into a problem getting the border width from elements.
> This isn't a specific jQuery problem ...
I don't know, there are some unusual things going on there. I added a few
things to your demo and this was the IE result:
This is #div1
jQuery(s).css("border"): undefined (undefined)
style.border: (string)
jQuery(s).css("borderStyle"): none (string)
style.borderStyle: (string)
jQuery(s).css("borderTopStyle"): none (string)
style.borderTopStyle: (string)
It does seem like a jQuery bug that .css("border") returns undefined on IE
instead of an empty string.
As for the border width, in the case where there is no border all the
borderTopStyle etc properties should return "none" and you can ignore the
borderTopWidth. Unfortunately, if the border is explicitly set to one of the
pizza crust names (thin/medium/thick) IE doesn't want to give a real pixel
number, at least through .css(). Try "thin dashed red" for example.
If nobody else is chasing this I can look at it tonight.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/