kimberlyhirsh[d], KartikPrabhu, [snarfed], alex11, [tantek], [jgmac1106], moose333, [jeremycherfas]1, capjamesg, angelo and hendursa1 joined the channel
ZegnatIn the case of JSON-LD, it might be safe enough though. As you are not really looking to parse HTML per se. Just looking for a JSON blob delimited with <script> and </script> strings?
petermolnarthat is not that simple though in my opnion. One is supposed to add `type="application/ld+json"` with that `<script>` but what if the json block is inside ordinary javascript?
Zegnat"if the json block is inside ordinary javascript" then it is not a JSON-LD island. So when you grab the script tags, you can run whatever is inbetween them through a JSON parser, and if that does not work, it was not a valid JSON-LD island.
ZegnatSure you could add the type attribute for the string match. I am just saying string matches might actually be completely fine if all you want is JSON-LD islands and are not at all interested in the fact that it happens to be HTML they are inside of :)
[tantek]I kinda wonder if that could also be part of an authoring UI, like providing a bit of reply-context heads-up (author, date of original) when you're composing a reply
Murray[d]I really like the idea of a warning about responding to something over a certain age; I know some forums used to show a warning if you responded to a thread over a preset age (it had a term to do with graves or tombstones that I cannot recall now...)