You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "H. Swaczinna" <sw...@wlp-systems.de> on 2006/12/08 18:55:22 UTC

[Tobago] Whitespaces in HTML output before DOCTYPE

Hello,

Tobago generates some whitespace characters before the DOCTYPE 
defintionen in the HTML output. Example:

-------------



  
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html
...
-------------

This seems to be no problem for a browser, but HTMLUnit (in Canoo 
webtest) has a problem with the whitespaces:

                <htmlparser>
                    <warning col="2" line="1" url="http://localhost:8080/worklist/">Bare character content found. Inserting parent element &lt;body&gt;.</warning>
                    <warning col="2" line="1" url="http://localhost:8080/worklist/">Missing parent chain. Inserting proper parent &lt;html&gt; for element &lt;body&gt;.</warning>
                    <error col="68" line="6" url="http://localhost:8080/worklist/">DOCTYPE declaration found inside document content.</error>
                </htmlparser>

This problem leads to an other followup problem: The onload script
of the body tag is not executed, so Tobago.init() is not called.
This leads to an exception in Tobago.submit (Tobago.js, line 364).
Please remove the whitespaces.

Regards
Helmut