[presentation-api] Pull Request: debug `EXAMPLE 7`

youkinjoh has just submitted a new pull request for https://github.com/w3c/presentation-api:

== debug `EXAMPLE 7` ==
`{string: '你好,世界!', lang: 'zh-CN'}` is not parsable to JSON.

```js
// controller.html
connection.send("{string: '你好,世界!', lang: 'zh-CN'}");

// presentation.html
var messageObj = JSON.parse(message.data);
```

And, drop `body` property.

```js
document.appendChild(spanElt);
```


See https://github.com/w3c/presentation-api/pull/511


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 26 December 2022 07:22:24 UTC