w3c / presentation-api

Presentation API
https://www.w3.org/TR/presentation-api/
Other
71 stars 39 forks source link

debug `EXAMPLE 7` #511

Closed youkinjoh closed 1 year ago

youkinjoh commented 1 year ago

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

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

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

And, drop body property.

document.appendChild(spanElt);

Preview | Diff

w3cbot commented 1 year ago

tidoust marked as non substantive for IPR from ash-nazg.

markafoltz commented 1 year ago

Thank you for this contribution! Unfortunately it looks like the spec doesn't build right now because of Issue #509. I will put up a PR to address that, then we can ensure the spec builds before merging.