Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


iframe seamless attribute looks to not be very cross browser compatible?

In "Fixing Info Windows and Google Maps" the solution that's shown uses an iframe with the attribute of seamless="seamless". I did some research on w3schools.com and it says that only Chrome and Safari support that attribute. Is this true, and if so is there a cross browser solution?

2 Answers

James Barnett
James Barnett
39,199 Points

There isn't such a solution, HTML5 please currently warns against using the iframe[seamless] property.

Here's a great article on iframe[seamless] property

At the time of it's writing however there's virtually no support:

Support: No current browser (IE9, Chrome 18, Safari 5.1, FireFox 12, Opera 11.6), but functional in Chrome 21

Here's a link to the MDN article on iframe[seamless] property

James Barnett
James Barnett
39,199 Points

Regarding W3Schools, using that site as a reference is considered a worst practice. You can read more about this over at W3Fools

W3Schools is not affliated with the W3C in any way and are using it's trademark without it's permissions.

Instead you should be using: