[ https://issues.apache.org/jira/browse/WICKET-773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514913 ]
Alastair Maw commented on WICKET-773: ------------------------------------- Hmmm. The whole point of this is to force IE6/7 to use strict mode, surely? Otherwise, why do we have it? You then want your DOCTYPE to be the first line otherwise things don't validate properly. I think we should be doing this. > Wicket strips <?xml?> line from html but doesn't remove newline > --------------------------------------------------------------- > > Key: WICKET-773 > URL: https://issues.apache.org/jira/browse/WICKET-773 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 1.2.6, 1.3.0-beta2 > Reporter: Tauren Mills > Assignee: Juergen Donnerstag > Priority: Minor > Fix For: 1.2.6, 1.3.0-beta2 > > > Having an html page like this: > ---- > <?xml version="1.0" encoding="utf-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > ---- > Results in output of this: > ---- > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > ---- > Notice the blank line before the DOCTYPE. Line and newline should be removed > if getStripXmlDeclarationFromOutput() is set. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.