Re:Ask HN: What will become possible by 2025 in your field o...
by joeframbach on Sunday November 17, 2019 @05:37PM
(#21560482)
Looking at a 10 year window. There's a low probability, but non-zero, that I'll be able to correctly align and distribute DOM elements both horizontally and vertically. I might accomplish this by dropping support for the Internet Explorer family of browsers.
[ Parent
| on HN ]
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.
Re:Ask HN: What will become possible by 2025 in your field o...
by fragmede on Sunday November 17, 2019 @05:51PM
(#21560562)
Still, our tools will need us to pick one screen size and only be able to handle either smartphone, tablet, or desktop resolution with such grace. Magically handling all 3 will take a bit longer.
Re:Ask HN: What will become possible by 2025 in your field o...
by buboard on Monday November 18, 2019 @05:25AM
(#21563182)
Try tables
Re:Ask HN: What will become possible by 2025 in your field o...
by scotty79 on Monday November 18, 2019 @10:59AM
(#21565315)
You laugh but I recently had some floats but they didn't do exactly what I so I tried to make a flexbox sized to content, and it occured to me that I just want good old table to align my items.
Re:Ask HN: What will become possible by 2025 in your field o...
by buboard on Monday November 18, 2019 @04:32PM
(#21568336)
i m dead serious. i use tables even with bootstrap, i like the way they gracefully realign between horizontal and vertical modes in mobile. (e.g. here https://coinzaa.com/)
Tables are great. I believe that all these grid systems will end up reinventing tables 100% anew.
I propose that they add new elements to HTML instead, <grid> <gr> <gd> etc. They will work 100% exactly like tables, but semantic people won't feel guilty using them.