Comments (4)
Apparently this was previous the way it worked before removing it after having problems with IE8's fireEvent: 898b546
Array.prototype.indexOf()
is only supported since IE 9.
from polyfills.
Well I still think the current implementation is wrong. If I have an element with the class items
and check that the element contains the class item
it will return true because item
is a substring of items
while the class item
doesn't actually exist on the element.
from polyfills.
@sandersky commented on 26 aug. 2014 21:09 CEST:
Well I still think the current implementation is wrong. If I have an element with the class
items
and check that the element contains the classitem
it will return true becauseitem
is a substring ofitems
while the classitem
doesn't actually exist on the element.
Seems a valid bug, you're right.
Wish above commit had a bug report attached to it; searching the Internet didn't find any similar issues with Array.prototype.indexOf()
and IE's fireEvent
.
Edit:
Found the corresponding PR, but no real explanation.
from polyfills.
For me I only care about IE9 and above since IE8 is no longer supported by Microsoft (since April when they stopped XP support). With this being said I opted for the indexOf
solution in my project. If I find time I'll submit an IE8 friendly fix to the issue I addressed.
from polyfills.
Related Issues (20)
- Browser compatibility HOT 2
- EventSource doesn't work properly in IE8/9 HOT 1
- range does not work in chrome
- Why start with a select and not a range, then degrade to a select?
- 'this._xhr' is null or not an object on line 127 on IE8
- publish on npm HOT 6
- Missing support for 'force' argument of classList.toggle
- Missing SVG support for classList HOT 3
- Create tag so it can be used/found on Bower
- add a `package.json` HOT 1
- classList.add() is not working with similar strings HOT 1
- if message length exceeds 4096 bytes, it won't get processed correctly HOT 4
- Add docs for browser support
- MessageEvent origin is undefined
- How to call this in angular 2 HOT 1
- EventSource.prototype is not getting called
- TypeError Angular 6
- removeEventListener ~~ rewrited from web_socket.js
- 'eventsource' is null or not an object on IE8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyfills.