Jiangultimo / embeddedjavascript

Automatically exported from code.google.com/p/embeddedjavascript
Other
0 stars 0 forks source link

Error using img_tag in IE #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
My code looks like this

    <% if(action_type == "registration") { %>
        <%= img_tag("/images/actions/news_feed/welcome.png", "welcome", {class : "icon"} %>
    <% } %>

This is giving me an unexpected identifier error in IE 7 and 8. If I remove the 
img_tag and replace it 
with a html include it works correctly.

    <% if(action_type == "registration") { %>
        <img src="/images/actions/news_feed/welcome.png" alt="welcome" class="icon"/>
    <% } %>

Original issue reported on code.google.com by kimberle...@gmail.com on 10 May 2010 at 5:38

GoogleCodeExporter commented 8 years ago
I think the issue comes from adding the hash as the optional parameter 

Original comment by chadro...@gmail.com on 10 May 2010 at 7:44

GoogleCodeExporter commented 8 years ago
your code is missing closing bracket of img_tag

Original comment by m0k...@gmail.com on 15 Jun 2010 at 7:47