[ 
https://issues.apache.org/jira/browse/TRINIDAD-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570486#action_12570486
 ] 

Andrew Robinson commented on TRINIDAD-922:
------------------------------------------

How about these:

<tr:document
  
doctype="html-strict|html-loose|html-frameset|xhtml-strict|xhtml-transitional|xhtml-frameset|custom"
  customDoctypePublicID=""
  customDoctypeUri=""
  renderDocTypeUri="true|false">

"Standard" ones render from this list:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd";>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" 
"http://www.w3.org/TR/html4/frameset.dtd";>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd";>
(did I miss any?)

The "custom" one renders as:
<!DOCTYPE html PUBLIC "#{customDoctypePublicID}" "#{customDoctypeUri}">

and setting the renderDocTypeUri to false would suppress the URI. I.E.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">

Which forces the browsers into quirks mode.

> Add a switch to <tr:document> allowing to generate XHTML STRICT or 
> TRANSITIONAL DOCTYPE
> ---------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-922
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-922
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>            Reporter: Paul van Rossem
>
> Now always the default HTML DOCTYPE is output by the <tr:document> tag. This 
> does not allow to validate the output as XHTML.

-- 
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