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 6373 - CHARACTER_ENCODING test may crash when markup contains two meta "Content-Type"
Summary: CHARACTER_ENCODING test may crash when markup contains two meta "Content-Type"
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: Other All
: P2 minor
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 14:57 UTC by fd
Modified: 2009-01-07 10:00 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-01-06 14:57:58 UTC
The XSLT may crash with a:
 Error on line 91 of file:/home/fd/w3c/dev/2007/mobileok-ref/src/org/w3c/mwi/mobileok/basic/xslt/CharacterEncodingSupportTest.xsl:
  XPTY0004: A sequence of more than one item is not allowed as the first argument of
  lower-case() ("text/html; charset=windows-125...", "text/html; charset=utf-8")

... message if the moki representation contains more than one meta "content-type" element defined in different parts of the markup.
Comment 1 fd 2009-01-07 10:00:35 UTC
This bug occurs because the mobileOK Checker tries to run the tests whenever possible, and thus sometimes on a tidied version of the markup that is still not valid XHTML.

The tests must be more fault-tolerant and in particular should not expect that elements that should appear only once in an XHTML page actually appear only once...

I updated CharacterEncodingSupportTest.xsl consequently as well as a couple of other XSLT-based tests.