|
|
Log in / Subscribe / Register

String based HTML building

String based HTML building

Posted May 10, 2026 6:58 UTC (Sun) by cladisch (✭ supporter ✭, #50193)
In reply to: String based HTML building by khim
Parent article: Forgejo "carrot disclosure" raises security questions

> > DOM based HTML building (document.createElement and friends)
>
> Are entirely unsuitable for responsible interface. Because browsers don't have analogue of WM_SETREDRAW.

By now, browsers have the View Transition API: https://developer.chrome.com/docs/web-platform/view-trans...

(Most of the documentation talks about animations; what matters is that all DOM changes are put into a single animation.)


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds