[ 
https://issues.apache.org/jira/browse/OFBIZ-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714115#action_12714115
 ] 

Adrian Crum commented on OFBIZ-2543:
------------------------------------

Ryan,

The DOCTYPE declaration was added to HtmlScreenRenderer.java so that we can be 
sure it is the first element in the page. Prior to that, the widget comments 
would precede the DOCTYPE element - which caused pages to fail validation and 
it caused problems in some browsers.


> Multiple DOCTYPE in rendered HTML
> ---------------------------------
>
>                 Key: OFBIZ-2543
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2543
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Ryan Foster
>            Assignee: Anil K Patel
>            Priority: Minor
>         Attachments: Picture 1.JPG, Picture 2.JPG, Picture 3.JPG
>
>
> The XHTML Transitional DOCTYPE is being duplicated for each screen definition 
> when each view is rendered in HTML.
> Looked into this a bit and it looks like the  <!DOCTYPE html PUBLIC 
> "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> DOCTYPE 
> declaration is being called in multiple files:
> 1. In HtmlScreenRenderer.java at line 75
> 2. In htmlScreenMacroLibrary.ftl at line 21
> 3. In headerHead.ftl at line 19 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to