Polymer with fallback

261 views
Skip to first unread message

Jason Jung

unread,
Feb 18, 2014, 12:47:20 PM2/18/14
to polym...@googlegroups.com
We're looking to use Polymer for our production code. I know Polymer tries to support the latest browsers, and I'm curious as to what the best way would be in order to support IE 8+.

My plan is to use feature detection and use Polymer for supported browsers, and then fallback to the traditional iframe for others. However, I do not want to repeat the exact same template coding for the iframe version. Do you have any suggestions as to how we can share the same code base that can be used by both Polymer and non-polymer HTML templates?


closde...@gmail.com

unread,
Nov 25, 2014, 3:03:39 PM11/25/14
to polym...@googlegroups.com


On Tuesday, February 18, 2014 10:47:20 AM UTC-7, Jason Jung wrote:
We're looking to use Polymer for our production code. I know Polymer tries to support the latest browsers, and I'm curious as to what the best way would be in order to support IE 8+.

My plan is to use feature detection and use Polymer for supported browsers, and then fallback to the traditional iframe for others. However, I do not want to repeat the exact same template coding for the iframe version. Do you have any suggestions as to how we can share the same code base that can be used by both Polymer and non-polymer HTML templates?



 
Don't know if you found a solution for this or not, probably, but no one answered.  Most likely using Modernizr or some sort of HTML5 Shim that allows you to create the elements that Polymer creates. Probably would be lots of extra code.  I wanted to do some of this myself, but have been delving through solutions for this. You could also look at extending the HTML5Shiv or adding some Javascript createElements to your DOM. But this would be lots of extra work to get all of the elements to render correctly for IE8 and IE9 using document.createElement(elementName).

Hope that helps. But would like Google to make something at least for IE9 and those hold outs on Windows XP. 
 

Brian Geppert

unread,
Nov 26, 2014, 6:07:45 PM11/26/14
to polym...@googlegroups.com, closde...@gmail.com
With extra polyfills, Polymer works in IE9 (minus the Flexbox-based layout attributes).  I have Polymer IE9 demo that shows the basics that you need to get things working.

Cheers,
Brian
Reply all
Reply to author
Forward
0 new messages