Closed neilbaylorrulez closed 8 years ago
Thanks for reporting but I'm not sure what you mean so far...
It shouldn't be a problem to use a $('input[type="range"]')
selector also in IE8 or IE9.
Tested this CodePen on IE8 Windows XP without any issues.
Ahh, you're right.
The issue comes up when you programatically add the input (with innerHTML or appendChlid) When doing it this way, the IE parser strips the type="range" which will make the subsequent selector fail.
So it might still be good advice to use a data attribute (or a class) as the selector in your example usage - it would have saved me 5 minutes atleast :P
✅
This selector
fails in IE8 and 9
I think you should update your example usage to use a data-selector like:
So that your example usage works out of the box in IE8 and 9
Thanks!