News for hackers. Stuff that matters.
Re:The Invisible JavaScript Backdoor by SilasX on Wednesday November 10, 2021 @09:48AM (#29175157)
HN exchange:

"Why can't we just, you know, direct blind users to a special protocol that structures the data appropriately and then lets them parse it however they want?"

Me: 'We did! It's called HTML! Designers just broke it!'

https://news.ycombinator.com/item?id=20224961

Re:The Invisible JavaScript Backdoor by mwcampbell on Wednesday November 10, 2021 @10:18AM (#29175508)
IMO, HTML is still closer to that ideal than anything else we have. My guess is that given a random web application and a random non-web GUI (especially if the latter is multi-platform), the web application will be more usable with a screen reader.
Re:The Invisible JavaScript Backdoor by slaymaker1907 on Wednesday November 10, 2021 @02:06PM (#29178997)
I'd say markdown is even better than HTML for writing generic documents since it enforces simplicity. In particular, it forces a linear flow of the document and does not have any support for stuff like JS.
Re:The Invisible JavaScript Backdoor by joquarky on Wednesday November 10, 2021 @02:20PM (#29179229)
And now many people are excited about throwing all of that away with canvas and web assembly.
Re:The Invisible JavaScript Backdoor by mmis1000 on Wednesday November 10, 2021 @08:28PM (#29183378)
Is it possible for developer to make canvas accessible? For example, pronounce "You are one the road that goes from left to right, there is a shop on your top and a inn on bottom" like mud.
Re:The Invisible JavaScript Backdoor by gostsamo on Thursday November 11, 2021 @01:06AM (#29184942)
Real accessibility is about presenting the same information your other users have. So, instead of you typing the description, let each of the drawn objects have its own description and made them discoverable and navigable. I think that Google were trying to make flutter2 components accessible, but it means starting from ground zero and building the same stuff anew.
Re:The Invisible JavaScript Backdoor by skyde on Wednesday November 10, 2021 @02:41PM (#29179526)
right! But we would not need to use canvas if updating the DOM was not super slow.

I suspect the #1 reason is the layout/reflow engine but i might be wrong. Game engine do run physics at 60fps which is harder than CSS reflow.

Re:The Invisible JavaScript Backdoor by HeavyStorm on Wednesday November 10, 2021 @03:21PM (#29180139)
Html could have been that - or better, it was at first - but instead of creating a more specialized solution for running rich apps we decided to exploit html.

Right now we are in what I'd call the worse of both worlds, because we rely on html to do things it wasn't designed to, and there's no longer purity in any html out in the wild.