webcomponents.js (and min.js) error in Safari (with polymer versions 0.5.3 & 0.5.4)

438 views
Skip to first unread message

Kelly St. John

unread,
Jan 27, 2015, 2:33:37 PM1/27/15
to polym...@googlegroups.com
I'm currently using polymer version 0.5.4, and receiving the following console error in Safari 5.1.7, specifically relating to webcomponents.min.js:

ReferenceError: Can't find variable: Window (webcomponents.min.js.11)

When I switch over webcomponents.js, I receive the following error:

SyntaxError: Cannot declare a parameter named 'textContent' in strict mode (webcomponents.js:1948)


The site runs fine in Chrome v40.0, and IE 11 (albeit slow in IE) without any errors.


Any suggestions?  Is this a known issue?  I noted comments relating to a fixed Polyfill in Safari for Polymer 0.5.4, but it doesn't seem to have resolved the issue in my case.  I should also note that this Safari issue only began with Polymer version 0.5.3.




Arthur Evans

unread,
Jan 27, 2015, 4:43:32 PM1/27/15
to Kelly St. John, polymer-dev
Hi Kelly,

Polymer only supports the evergreen browsers -- the latest versions of Chrome, Safari, IE and Firefox. According to the browser compatibility page, that includes Safari 6+.


The problem fixed in 0.5.4 was an issue that affected Safari 7 & 8.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/9baa15a3-8fa5-40c5-bf05-f2d94f0b094e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kelly St. John

unread,
Jan 27, 2015, 5:26:18 PM1/27/15
to polym...@googlegroups.com, ke...@qfin.net
My bad...when I recently downloaded the latest available Safari for Windows for testing purposes, I failed to realize the version was so much older than the current versions available for Mac & iOS...

I suppose then, the only way to truly test is on an actual Apple device with a more recent version of Safari.

Thanks!

Arthur Evans

unread,
Jan 27, 2015, 5:42:35 PM1/27/15
to Kelly St. John, polymer-dev
Yeah, I'm afraid so -- they discontinued Safari for Windows in 2012, I think. And unlike IE, they don't provide prefab VMs for testing Safari.

There are some services that let you do testing online.  I've used Browserstack (http://www.browserstack.com/), for example, which lets you test on a variety of 
OSes and browsers.

Cheers,
Arthur


Reply all
Reply to author
Forward
0 new messages