wicket:id attribute with a value containing spaces generates invalid markup
---------------------------------------------------------------------------

                 Key: WICKET-1818
                 URL: https://issues.apache.org/jira/browse/WICKET-1818
             Project: Wicket
          Issue Type: Bug
          Components: wicket
            Reporter: Kare Nuorteva
             Fix For: 1.3.5, 1.3.6, 1.4-M4, 1.5-M1


HTML:
<span wicket:id="foo bar"></span>

Java:
Label label = new Label("foo bar", "lol");
label.setOutputMarkupId(true);

Generates markup:
<span id="foo bar">lol</span>

Expected:
<span id="foo_bar">lol</span>

When wicket generates wicket:id attributes it should replace spaces with some 
appropriate valid character (like underscore "_").


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to