Volodymyr Siedlecki created MYFACES-4681:
--------------------------------------------
Summary: Faces 4.1 TCK Failure: headRenderPassthroughTest - Head
ID Not Rendered
Key: MYFACES-4681
URL: https://issues.apache.org/jira/browse/MYFACES-4681
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 4.1.0-RC2
Reporter: Volodymyr Siedlecki
Test:
[https://github.com/jakartaee/faces/blob/4.1.0-RELEASE/tck/old-tck/source/src/com/sun/ts/tests/jsf/spec/render/head/URLClient.java#L85]
We fail to render the head id for this test even though it's specified in the
facelet.
App:
[https://github.com/jakartaee/faces/tree/fbaccab3da18ee26d40cd6f77d91de79ef1c7b15/tck/old-tck/source/src/web/jsf/spec/render/head|https://github.com/jakartaee/faces/blob/fbaccab3da18ee26d40cd6f77d91de79ef1c7b15/tck/old-tck/source/src/web/jsf/spec/render/head/passthroughtest_facelet.xhtml#L29]
Related Spec Issue: [https://github.com/jakartaee/faces/issues/1760]
As noted by BalcusC's comment, the output mode is controllable, not by the
doctype, but by the {{<facelets-processing>}} in {{faces-config.xml.}}
{{By default, the facelet processing is the HTML5 output. This means the
publicId and systemId should be null as there is no DTD. This is not the case
in our code, as we create with doctype using the declaration from the xhtml
page. }}
{{Doctype initialization: }}
{{[https://github.com/apache/myfaces/blob/4.1.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/CompilationManager.java#L148]}}
{{This leads to the HTML5 check to fail when attempting to render the IDs in
the head and body elements.}}
{{[https://github.com/apache/myfaces/blob/4.1.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlHeadRenderer.java#L64-L67]}}
{{[https://github.com/apache/myfaces/blob/4.1.x/impl/src/main/java/org/apache/myfaces/renderkit/html/util/HtmlRendererUtils.java#L1785-L1787]
}}
{{Please review in case anything looks incorrect. }}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)