angryITguy
angryITguy

Reputation: 9561

Is case sensitive ID for IE avoidable if using YUI 2.8?

I'm using 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 ?

Upvotes: 0

Views: 300

Answers (2)

Anthony Potts
Anthony Potts

Reputation: 9160

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.

Upvotes: 0

Tivac
Tivac

Reputation: 2573

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.

Upvotes: 1

Related Questions