This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7267 - CHARACTER_ENCODING_SUPPORT-2 may be reported twice
Summary: CHARACTER_ENCODING_SUPPORT-2 may be reported twice
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 trivial
Target Milestone: ---
Assignee: Abel Rionda
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-13 08:32 UTC by fd
Modified: 2009-11-30 16:49 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-08-13 08:32:14 UTC
The CHARACTER_ENCODING_SUPPORT-2 message is reported twice when:
- the HTTP Content-Type does not specify the encoding
- and there is no XML declaration

The CharacterEncodingSupportTest/3 test was validated with these two messages but should only return one of them.

The duplication occurs because both xsl:if tests in CharacterEncodingSupport.xsl are true and return the error:
<xsl:if test="/moki/primaryDoc/XHTMLDocInfo/xmlDecl[@declaration = 'false']">
<xsl:if test="not(/moki/primaryDoc/XHTMLDocInfo/xmlDecl[lower-case(@encoding) = 'utf-8'])">

TODO: merge both tests.
Comment 1 fd 2009-11-30 16:49:41 UTC
Tests merged in XSLT stylesheet.
CharacterEncodingSupportTest/3 updated.