News for hackers. Stuff that matters.
Re:KDE Slimbook: Linux Laptop with Ryzen 4000 by coldpie on Thursday July 23, 2020 @08:04AM (#23926403)
It'd be cool if browsers had some way to display text and handle things like scrolling and linking to other pages. Really a big oversight when they were designing HTML. Too bad though, I guess every site will have to implement all of that from scratch in JS.
Re:KDE Slimbook: Linux Laptop with Ryzen 4000 by chrismorgan on Thursday July 23, 2020 @08:27AM (#23926559)
I think the problem here isn’t that, so much as that Notion is using their editing interface even when you’re clearly only reading the document and can’t edit it, and kinda whitewashing it a bit so that it’s not actually editable (with event handlers to stop the normal editing things working, turning the caret colour transparent, &c.), and that seems to mess things up even further. (I don’t use Notion, but I presume their editing interface works better when it’s not read-only, because otherwise no one would be willing to use it.) Of course what they should have done is just produced the HTML (preferably server-side, but even client-side would be tolerable) and left it alone, no contenteditable, event handlers.