pz7gc3 / embeddedjavascript

Automatically exported from code.google.com/p/embeddedjavascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error using img_tag in IE

GoogleCodeExporter opened this issue · comments

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

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

your code is missing closing bracket of img_tag

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