News for hackers. Stuff that matters.
Re:When a website erases your text you can use this trick to... by pcthrowaway on Tuesday September 05, 2023 @09:27PM (#37400277)
> It's a solved problem in the good o' days with simple HTML forms.

Not completely. Here on HN (which is not a SPA) if I upvote someones comment while I'm responding to it, I lose my response.

Now I know I can hit the back button and recover it (in Chrome on OSX at least), but I imagine a lot of people don't

Re:When a website erases your text you can use this trick to... by oefrha on Tuesday September 05, 2023 @10:12PM (#37400631)
> Here on HN (which is not a SPA) if I upvote someones comment while I'm responding to it, I lose my response.

That only happens if you disable JavaScript and voting has to be done through an href navigation. Otherwise HN constructs an Image with the voting URL as src, so there's no navigation and you don't lose anything.

Re:When a website erases your text you can use this trick to... by extraduder_ire on Tuesday September 05, 2023 @10:34PM (#37400752)
It does lose it for me if I click on the reply link[0] and start typing. It works just as you say if I'm on the post itself[1] by clicking on the timestamp, and typing in the pre-existing reply box.

[0]: https://news.ycombinator.com/reply?id=37400631&goto=item%3Fi...

[1]: https://news.ycombinator.com/item?id=37400631