5 ms·
> I might accomplish this by dropping support for the Internet Explorer family of browsers. I was just working on some legacy stuff last week. Only worked in I
by at-fates-hands 7y ago
> I might accomplish this by dropping support for the Internet Explorer family of browsers.
I was just working on some legacy stuff last week. Only worked in IE11, in compatibility mode. I had to use vanilla JS to get some data out of a huge form.
Yeah, document.querySelector('#app') doesn't work. I found out, "It only works on modern browsers" which IE11 doesn't qualify as, which is kind of funny to me. I ended up using document.getElementById('app') instead though, which did work.
- non-entity 7y agoYou could probably find a polyfill to implement querySelector for IE. I've done that for a number of features I didn't want to re implement from scratch
- jauco 7y agoWhat about Document.getElementById(“app”)?
- stringyham 7y agoIs there some joke I'm not getting? querySelector has worked on IE since version 8.
- at-fates-hands 7y agoExcept when you're running in compatibility mode.
- stringyham 7y agoCompatibility mode would be like coding for IE7. Not IE11's fault :D
- at-fates-hands 7y agoYeaper. "Legacy software man, it's a helluva drug!"