News for hackers. Stuff that matters.
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.