Status: Unconfirmed
Owner: [email protected]
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 6921 by ivanov.laduga: Invalid script text in source code of the  
site.
http://code.google.com/p/chromium/issues/detail?id=6921

Chrome Version       : 0.3.154.0
URLs (if applicable) : http://www.econym.org.uk/gmap/example_map3.htm
Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
      Safari 3:
     Firefox 3: OK
          IE 7:

What steps will reproduce the problem?
1. Go on http://www.econym.org.uk/gmap/example_map3.htm
2. Select "View source code" in context menu

What is the expected result?
Java script in the code should be valid.

What happens instead?
Java script in the code is invalid.

Please provide any additional information below. Attach a screenshot if
possible.

Part or the real code:
       // A function to create the marker and set up the event window
       function createMarker(point,name,html) {
         var marker = new GMarker(point);
         GEvent.addListener(marker, "click", function() {
           marker.openInfoWindowHtml(html);
         });
         // save the info we need to use later for the side_bar
         gmarkers.push(marker);
         // add a line to the side_bar html
         side_bar_html += '<a href="javascript:myclick(' + (gmarkers.length-
1) + ')">' + name + '<\/a><br>';
         return marker;
       }

Chrome shows insread:
       A// function to create the marker and set up the event window
function
       createMarker(point,name,html) { var
         marker GMarker(point); =  GEvent.addListener(marker,
         click", "function() { marker.openInfoWindowHtml(html);
           });
         save
         // the info we need to use later for the side_bar
gmarkers.push(marker);
         add
         // a line to the side_bar html side_bar_html
         + += '' (gmarkers.length-1) + )" '>' + name + '<\/a><br>';
         return marker;
       }



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to