You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ad...@apache.org on 2019/05/02 13:40:10 UTC

[wicket] 04/15: WICKET-6658 allow non-form tag for nested forms

This is an automated email from the ASF dual-hosted git repository.

adelbene pushed a commit to branch WICKET-6662
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit 13521d13b1d39d07482f4fb3731b189d7f38e330
Author: Sven Meier <sv...@apache.org>
AuthorDate: Wed Apr 24 09:41:35 2019 +0200

    WICKET-6658 allow non-form tag for nested forms
    
    ignore case when comparing tag name
---
 wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
index ca15dea..df0f28d 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
@@ -1625,7 +1625,7 @@ public class Form<T> extends WebMarkupContainer
 		else
 		{
 			// WICKET-6658 form is not allowed, anything else can stay as is
-			if ("form".equals(tag.getName()))
+			if ("form".equalsIgnoreCase(tag.getName()))
 			{
 				tag.setName("div");
 			}