Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does missing image display broken image and not the text from alt tag in Chrome?

So the rails code I used:

<%= image_tag("logo.png", :alt => "Sample App", :class => "round") %>

produces the HTML:

<img alt="Sample App" class="round" src="/images/logo.png" /> 

But when I load the page, it shows the broken image symbol.

What gives?

I am loading it in the latest stable build of Chrome on Windows, fyi.

As an aside...it shows the text and works perfectly in Firefox on Windows. But Chrome breaks it.

like image 536
marcamillion Avatar asked Oct 16 '10 19:10

marcamillion


1 Answers

It's a bug in Webkit. Consequently, it's a bug in Chrome, too.

like image 87
Matt Ball Avatar answered Oct 06 '22 10:10

Matt Ball