Object cannot be created in this context, Code: 9 revisited

I did some more digging and finally figured out what we were doing to tickle this error in Firefox. Short story: passing a null to dojo.getComputedStyle(). In particular, we were making calls like dojo.marginBox(dojo.byId("a-bad-id")) which in turn calls into dojo.getComputedStyle() to do it’s work, and hence, the error. I updated the repro case and the original blog post to reflect the findings.

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.