Description
The markup for rendered pages including a Panel now suddenly renders xmlns:wicket="http://wicket.apache.org", making the markup invalid. See below for a piece of our markup, and further below for a test that exhibits this behavior.
<div id="modalWindowContainer40"><!-- MARKUP FOR nl.topicus.cobra.web.components.modal.ModalWindowContainer BEGIN -->
<div id="id141" xmlns:wicket="http://wicket.apache.org" style="display:none"><!-- MARKUP FOR nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow BEGIN -->
<!-- MARKUP FOR nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow END -></div><div id="id242" xmlns:wicket="http://wicket.apache.org" style="display:none"><!- MARKUP FOR nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow BEGIN -->
<!-- MARKUP FOR nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow END --></div>
<!-- MARKUP FOR nl.topicus.cobra.web.components.modal.ModalWindowContainer END --></div>
</div>
/**
- Tests whether rendering a component, it doesn't show the xmlns:wicket namespace.
*/
@Test
public void renderingEmptyPanelDoesntShowWicketXmlns() { WicketTester tester = new WicketTester(); tester.startPanel(EmptyPanel.class); assertFalse("Should not contain xmlns:wicket", tester.getLastResponseAsString().contains("xmlns:wicket")); }
Attachments
Issue Links
- relates to
-
WICKET-2874 Copy attributes from wicket:panel to source tag
- Resolved