I know its part of the HTML5 spec, but sometimes WebKit doesn’t conform to the latest draft of the spec.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Alas WebKit’s worker postMessage implementation doesn’t currently serialise objects as it was written to an earlier version of the spec, and hasn’t yet been updated to match the “final” version.
It’s not actually JSON either — it’s the internal structured cloning algorithm in html5, which is more efficient (it doesn’t need to convert to and from string) and actually somewhat richer than JSON, however no one currently implements that 🙁