You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Paul Nicolucci (Jira)" <de...@myfaces.apache.org> on 2022/10/12 23:06:00 UTC

[jira] [Resolved] (MYFACES-4475) TCK: Spec1568IT: test failure do to an exta space in DOCTYPE

     [ https://issues.apache.org/jira/browse/MYFACES-4475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Nicolucci resolved MYFACES-4475.
-------------------------------------
    Resolution: Fixed

> TCK: Spec1568IT: test failure do to an exta space in DOCTYPE
> ------------------------------------------------------------
>
>                 Key: MYFACES-4475
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4475
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 4.0.0-RC1, 2.2.15, 2.3.10, 2.3-next-M7, 3.0.2
>            Reporter: Paul Nicolucci
>            Assignee: Paul Nicolucci
>            Priority: Major
>             Fix For: 2.3.11, 3.0.3, 2.3-next-M8, 2.2.16, 4.0.0-RC2
>
>
> The following test fails with MyFaces: [https://github.com/jakartaee/faces/blob/master/tck/faces40/doctype/src/test/java/ee/jakarta/tck/faces/test/servlet50/doctype/Spec1568IT.java]
> {noformat}
> org.junit.ComparisonFailure: Page is using HTML5 doctype expected:<<!DOCTYPE html[]>> but was:<<!DOCTYPE html[ ]>>
> org.junit.ComparisonFailure: Page is using XHTML4 transitional public doctype expected:<...l1-transitional.dtd"[]>> but was:<...l1-transitional.dtd"[ ]>>
> org.junit.ComparisonFailure: Page is using XHTML4 strict system doctype expected:<...D/xhtml1-strict.dtd"[]>> but was:<...D/xhtml1-strict.dtd"[ ]>>
> {noformat}
> There is an extra space before the closing of DOCTYPE: 
> <!DOCTYPE HTML > vs <!DOCTYPE HTML>
> This is due to the following line of code: [https://github.com/apache/myfaces/blob/main/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/DoctypeInstruction.java#L68]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)