Is case sensitive ID for IE avoidable if using YUI 2.8?
I'm u开发者_如何学Pythonsing YAHOO.util.Dom.get in IE.
It seems to be case sensitive and YUI (2.8) can't seem to deal with. FF lets you get ID's without case sensitivity issues. I was wondering if there is a way to also do it in IE.
This link says there is a problem. But has YUI been able to get around this ?
I made a quick test for this.
http://tivac.com/yui2/giulio_id.htm
document.getElementById is NOT case-sensitive in IE < 8. It should be, it is in every other browser.
YAHOO.util.Dom.get IS case-sensitive in all browsers.
Are you using IE8? Because it is case sensitive. I find it unlikely that the YUI developers would code around something like this.
I would prefer to not have my ids differ by case sensitivity anyway, since I am likely to copy and paste the wrong one that way. Just take the time to make your ids nice and clean and don't worry about if YUI does or doesn't have a work around.
精彩评论