[Plugin: XML Google Maps] Suggestion to help XHTML Validation
-
Hi there,
I’ve just been testing your excellent plugin, and I had a suggestion for an alteration to your HTML output when rendering a map.
Below is a sample of how I embed maps in a way that won’t fail validation. By using conditional comments you show IE the iframe (deprecated), and for everything that isn’t IE you show a proper object (XHTML Valid!).
I remember that I tested this across the board, but it just occurred to me that you might be able to specify the iframe for less than IE7. Then your second instance (the object element) would have to be for IE7+ or !IE – not sure if IE conditional comments will allow that.
<div class="map"> <!--[if IE]> <iframe width="446" height="446" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="MAP LINK HERE"></iframe> <![endif]--> <!--[if !IE]> <--> <object width="446" height="446" type="text/html" data="MAP LINK HERE"> <p>There is a problem and your map isn't displaying.</p> </object> <!--> <![endif]--> <p><a href="MAP LINK HERE">View Larger Map</a></p> </div><!-- end .map -->
Just a suggestion. Great plugin by the way!
- The topic ‘[Plugin: XML Google Maps] Suggestion to help XHTML Validation’ is closed to new replies.