News for hackers. Stuff that matters.
Re:You might want to build your WebApp in Canvas instead of ... by efficax on Sunday August 09, 2026 @07:14AM (#49230391)
Not a word in here about accessibility, of course. If you’re blind you’re blind to the canvas as well without a lot of work, it’s much more straightforward to make the DOM accessible
Re:You might want to build your WebApp in Canvas instead of ... by martinbooth on Sunday August 09, 2026 @07:21AM (#49230433)
It says:

> For most web apps, the DOM remains the better choice. It gives you accessibility, responsive layouts, text selection, input handling, and countless other features for free

Re:You might want to build your WebApp in Canvas instead of ... by evan_ on Sunday August 09, 2026 @07:39AM (#49230511)
Ah, so literally a word.

I was thinking you could probably get a fair bit of accessibility by using <div>s for your text rendering- or by maintaining a separate, hidden outline of DOM elements mirroring what’s on screen.

Re:You might want to build your WebApp in Canvas instead of ... by anticrymactic on Sunday August 09, 2026 @10:10AM (#49231592)
> maintaining a separate, hidden outline of DOM elements mirroring what’s on screen.

Is there any analysis on the efficacy of this approach? This is always my first thought in these discussions. Performance of WASM with native text IO. Being fully "hidden" one could just use semantic elements, skipping most layout div's, maybe in turn reaping untold accessibility benefits?

Being such a simple idea I cannot believe that it wasn't tried and abandoned before.

Re:You might want to build your WebApp in Canvas instead of ... by josephg on Sunday August 09, 2026 @08:51AM (#49230948)
Yep. Accessibility isn't just a nice to have. Its a legal requirement for a lot of websites under the ADA (Americans with Disabilities Act).