News for hackers. Stuff that matters.
Re:Show HN: This website is valid JSON by lifthrasiir on Wednesday December 09, 2020 @12:43PM (#25361279)
> One plausible fix for _that_ is to have a <plaintext> tag right after your <script>.

That seems more plausible since `<plaintext>` can't be closed. In fact mutation observers can be used to get and process the partially downloaded JSON before onload (I'm pretty sure this is possible but haven't tested, YMMV). That would be still horrible as a general solution, but might be actually an interesting solution for more limited situations.

There are no comments on this comment yet.