News for hackers. Stuff that matters.
Re:Ask HN: What will become possible by 2025 in your field o... by at-fates-hands on Sunday November 17, 2019 @06:00PM (#21560609)
> 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.

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”)?
Re:Ask HN: What will become possible by 2025 in your field o... by 013 on Monday November 18, 2019 @09:11AM (#21564407)
>SyntaxError: illegal character
Re:Ask HN: What will become possible by 2025 in your field o... by jauco on Monday November 18, 2019 @05:37PM (#21568902)
Yeah. Thats ios smart quotes for you. Re-type the “ by hand.