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/06 17:56:00 UTC

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

Paul Nicolucci created MYFACES-4475:
---------------------------------------

             Summary: 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
            Reporter: Paul Nicolucci
            Assignee: Paul Nicolucci


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)