[ http://issues.apache.org/jira/browse/WICKET-152?page=comments#action_12456771 ] John Major commented on WICKET-152: -----------------------------------
To answer Johan's question, when I have the patch applied, and the $ is not present my page validates as xhtml strict. When the patch is not applied, I get the same error with the $ that Martijn points out in a comment above. After reading Matej's comments, I tested simply replacing the $ with another character, by modifying the writeOpenTag method in wicket.util.string.JavascriptUtils and that seems to work. It also looks like the writeJavascriptUrl method may also have to be modified slightly in order to make a permanent fix. > Automatic multi window support and XHTML validation > --------------------------------------------------- > > Key: WICKET-152 > URL: http://issues.apache.org/jira/browse/WICKET-152 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 2.0 > Reporter: John Major > Priority: Minor > Attachments: wicket2.0-152.patch > > > With automatic multi window support enabled, Wicket is adding an id attribute > to the script element that contains a character that prevents XHTML > validation. For example, > <script type="text/javascript" > id="wicket.markup.html.WebPage$PageMapChecker"><!--/*--><![CDATA[/*><!--*/ > if (window.name=='' || window.name.indexOf('wicket') > -1) { > window.name="wicket:default"; } > /*-->]]>*/</script> > exhibits the problem as valid XHTML disallows the $ within the id attribute. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
