Hi,

I noticed strange behavior with Internet Explorer 8 and some MarkupWriter output into HTML using the element method.


I have the following in my page class:

writer.element("a","href",formEvent,"id","submitPrefs","onclick",

                    
"javascript:setupSubmit(this,'"+(overrideParentPage==null?"":overrideParentPage)+"');");


in FireFox this renders as (when overrideParentPage = OverviewTab):

<a href="/mloyalty/cai/index.catchoose:savepreferences" id="submitPrefs" 
onclick="javascript:setupSubmit(this,'OverviewTab');">Save Preferences</a>



This was what I expected.

However, in IE 8 it renders as this:

<a id="submitPrefs" onclick="javascript:setupSubmit(this,&amp;&apos;OverviewTab&amp;&apos;);" 
href="http://localhost/mloyalty/cai/index/catchoose:savepreferences";>Save Preferences</a>

The issue here being that in IE8 the ' characters got written out as &amp;&apos;

The setupSubmit script is vital to functionality, anyone have any insight into this issue?

Thanks,
Rich

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to