Forums / Developer / Validation problems with debug (ver. 4.01)

Validation problems with debug (ver. 4.01)

Author Message

Helle Andersen

Monday 07 June 2010 2:27:30 am

We try to validate all our "pages" at w3c.org. But is is frusttrationg that the ez debug does not validate. So even if our pages validate we always get the error that the page does not validate because of the debug. Could yoou plese fix that:

Tha validation error is:

Validation Output: 2 Errors

  1. Line 885, Column 16: document type does not allow element "div" here

    <div id="debug"<b>></b><table style='border: 1px dashed black; background-color: #fefe…

     

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

     

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

     

  2. Line 885: Extra content at the end of the document
    <b><</b>div id="debug"><table style='border: 1px dashed black; background-color: #fefe…

André R.

Monday 07 June 2010 6:49:59 am

1. why do you validate with debug enabled, it should not be enabled for normal users including crawlers like w3c.

2. validation errors in debug output is fixed in newer versions

3. 'Line 885, Column 16: document type does not allow element "div" here' Sound like you haven't placed '<!--DEBUG_REPORT-->' correctly in you pagelayout.tpl file, try placing it before </body>.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom