Google 课堂共享按钮:IE 错误

Google Classroom Share Button: IE Errors

在 IE 中单击“课堂共享”按钮时出现 javascript 错误(我已在 IE10 和 IE11 中测试过)。这可以在我们的生产站点以及教室 API 页面 @ https://developers.google.com/classroom/guides/sharebutton?hl=en 中重现。我附上了截图。我可能是错的,但这似乎是在 2015 年 12 月的某个时候开始发生的。

要重现该问题,请清除浏览器 cache/cookies,并确保您以可以 post 到 Google 课堂的教师身份登录 Google。您现在应该能够看到 javascript 错误。为了再次看到它,您必须清除 cache/cookies。

我用来实现按钮的代码与示例页面 @ https://developers.google.com/classroom/guides/sharebutton?hl=en 上的代码非常相似。如前所述,问题也发生在他们的示例页面上。我很好奇是否还有其他人看过这个。我还就此问题联系了 Google。

<div id="content">
  <div class="g-sharetoclassroom" data-size="32" data-url="..." ></div>
</div>
<script>
  gapi.sharetoclassroom.go("content");
</script>

联系 Google 后,他们似乎发现了一个问题,并正在努力解决。