gutenberg-parser-rs icon indicating copy to clipboard operation
gutenberg-parser-rs copied to clipboard

Parser spec notes - mention JSON manglers

Open dmsnell opened this issue 7 years ago • 0 comments

See serializeAttributes() where we mangle the JSON attributes in order to provide additional safety against transformations that WordPress might further take.

That is, it's not just "spec JSON" even though it should still be spec compliant. Also, I don't think we've specifically chosen RFC 7159 as our implementation so it may be worth only documenting the level of ambiguity we actually have: we resort to the platform implementation of the JSON parser and serializer.

also see…

  • https://github.com/WordPress/gutenberg/pull/6619/
  • https://github.com/WordPress/gutenberg/pull/6620/

dmsnell avatar May 14 '18 15:05 dmsnell