You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Andrea Del Bene (JIRA)" <ji...@apache.org> on 2012/04/26 16:02:17 UTC
[jira] [Commented] (WICKET-4511) Stack overflow when render
malformed html.
[ https://issues.apache.org/jira/browse/WICKET-4511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262630#comment-13262630 ]
Andrea Del Bene commented on WICKET-4511:
-----------------------------------------
The problem is due to HtmlHeaderSectionHandler which does not identify <head> tag properly. If you look at method onComponentTag you see that variable foundHead is set to true only when closing tag </head> is encountered and not when we find the opening one.
I've attached a patch which slightly changes the behavior of HtmlHeaderSectionHandler and solve the issue. I've tested it with all test cases without any problem.
> Stack overflow when render malformed html.
> ------------------------------------------
>
> Key: WICKET-4511
> URL: https://issues.apache.org/jira/browse/WICKET-4511
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.5
> Environment: windows, ubuntu. java 7, jetty 6.1.26
> Reporter: Inaiat Henrique de Moraes
> Attachments: WICKET-4511.patch, console-output.txt
>
>
> Stack overflow when render malformed html.
> Please, note that </HEAD> element is inserted after </body>.
> HTML:
> <html>
> <head>
> <body>
> Malformed HTML
> </body>
> </head>
> </html>
> Java:
> package com.mycompany;
> import org.apache.wicket.markup.html.WebPage;
> public class Test1 extends WebPage {
> private static final long serialVersionUID = -4267477971499123852L;
> }
> Thanks.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira