Fwd: [w3c/json-ld-syntax] Handling HTML character references in embedded JSON-LD (#100)

> re Google SDTT, can you point me (well, danbri@google.com) at a test-case
> and its expected vs actual outcome?

Dan, see the comment on issue #100 [1] for examples such as the following:
<script type="application/ld+json">
{
  "http://schema.org/description": "You can't embed a <script></script> snippet in JSON-LD embedded in HTML"
}
</script>
IMHO, we should either require such content to be encoded, and decoded when extracted from a script element, or prohibit such content in the first place, which comes with its own set of problems.

Gregg Kellogg
gregg@greggkellogg.net

[1] https://github.com/w3c/json-ld-syntax/issues/100#issuecomment-443533830 <https://github.com/w3c/json-ld-syntax/issues/100#issuecomment-443533830>

Received on Sunday, 2 December 2018 19:19:38 UTC