Re:Ask HN: What will become possible by 2025 in your field o...
by stringyham on Monday November 18, 2019 @06:48AM
(#21563535)
Is there some joke I'm not getting? querySelector has worked on IE since version 8.
Re:Ask HN: What will become possible by 2025 in your field o...
by at-fates-hands on Monday November 18, 2019 @11:09AM
(#21565387)
Except when you're running in compatibility mode.
Re:Ask HN: What will become possible by 2025 in your field o...
by stringyham on Monday November 18, 2019 @11:17AM
(#21565444)
Compatibility mode would be like coding for IE7. Not IE11's fault :D
Re:Ask HN: What will become possible by 2025 in your field o...
by at-fates-hands on Monday November 18, 2019 @02:37PM
(#21567407)
Yeaper.
"Legacy software man, it's a helluva drug!"
Re:Ask HN: What will become possible by 2025 in your field o...
by non-entity on Sunday November 17, 2019 @11:19PM
(#21561852)
You 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
Re:Ask HN: What will become possible by 2025 in your field o...
by jauco on Monday November 18, 2019 @05:18AM
(#21563155)
What about Document.getElementById(“app”)?
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.