• 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!

    http://wordpress.org/extend/plugins/xml-google-maps/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks for your feedback. I won’t change it at moment (my IE7 turned crazy)…

    Thread Starter alexleonard

    (@alexleonard)

    Woops, totally missed your response. That’s strange that it affected your IE7 in an odd way. I’ll have to double check the code but I’ve certainly used that on a regular basis without issue in the past.

    If I come up with a solution I’ll let you know.

    In theory IE8 should support the proper <object> method now, but I’ll have to do some testing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: XML Google Maps] Suggestion to help XHTML Validation’ is closed to new replies.