views:

46

answers:

1

Hello,

As I figured out, Chrome do not ignore empty src, but loading currently viewed file into it. I had statistics counting error because of this "feature".

Create file.php with this code...

<?
  $fp = fopen("log", "a+");
  fwrite($fp, time()."\");
  fclose($fp);
?>
<h1>Here is my page...</h1>
<img src="" />
<img src="" />

..and try loading in Firefox and Chrome. On Chrome one visit to file.php will generate 3 lines in log instead of one. But everything is ok in FF, IE.

Is it bug or feature? My opinion - bug.

Hope it will help anybody!

+1  A: 

See this Chromium bug report: http://code.google.com/p/chromium/issues/detail?id=38144

Yi Jiang