You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Emond Papegaaij (Jira)" <ji...@apache.org> on 2020/01/12 19:27:00 UTC

[jira] [Created] (WICKET-6726) CSP: inline styling and js in Form submitbutton handling

Emond Papegaaij created WICKET-6726:
---------------------------------------

             Summary: CSP: inline styling and js in Form submitbutton handling
                 Key: WICKET-6726
                 URL: https://issues.apache.org/jira/browse/WICKET-6726
             Project: Wicket
          Issue Type: Bug
          Components: wicket-core
            Reporter: Emond Papegaaij


org.apache.wicket.markup.html.form.Form#appendDefaultButtonField : this piece is just ridiculous to have in 2019
{code:java}
buffer.append(String.format("<div style=\"width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hidden\" class=\"%s\">", cssClass));
{code}

org.apache.wicket.markup.html.form.Form#appendDefaultButtonField
{code:java}
buffer.append(defaultSubmittingComponent.getInputName());
buffer.append("\" onclick=\" var b=document.getElementById('");
buffer.append(submittingComponent.getMarkupId());
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)