- From: Lou King <lking@knob.com>
- Date: Thu, 18 Mar 2010 14:30:38 -0400
- To: www-validator Community <www-validator@w3.org>
I am playing with adding a GoogleMap to a website I am developing. Starting with maps.google.com/ using their API v2. From what I have read so far there documentation needs help (or I need more background) and their examples are buggie ie "&" where & should be, etc. But given that I have gotten it to work. My example is http://www.knob.com/ATG/Calendar/venture.html In a javascript function in the header the line that is causing problems is: map.openInfoWindowHtml(map.getCenter(), "<img src='../jpg/Finian.jpg' width='64' height='80' alt='picture of Peter'><b>This is a picture of 951 Greene Street</b>"); As written the code works with all browsers I checked. The Goole Maps function openWindowHtml() gets 2 values; a point on the map and a string of HTML code which is the content of the balloon created. The problem is that I can't figure out how to get the line to validate. The error is "end tag for element "B" which is not open" pointing at the last ">". If I change the closing tag to "/>" then it validates but what is displayed is "... Street/>". If I change it to "</" it still works but doesn't validate. Suggestions? Is it just a poorly formed function? poorly implemented? or did I miss something? For context the map displays in a popup window if you start with /ATG/Calendar.html and click on the address. Forgive the foo picture. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Received on Thursday, 18 March 2010 18:31:20 UTC