<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6838</bug_id>
          
          <creation_ts>2009-04-21 08:52:37 +0000</creation_ts>
          <short_desc>No specific error message(s) for XHTML documents that cannot be decoded or parsed</short_desc>
          <delta_ts>2012-12-04 00:54:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="Dominique Hazael-Massieux">dom</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24880</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-04-21 08:52:37 +0000</bug_when>
    <thetext>Bug 5921, bug 6284, bug 6718 and bug 6818 relate to XHTML resources that cannot be successfully decoded or parsed to create a DOM tree.

The mobileOK Basic Tests 1.0 specification does not define any generic error message to represent such errors. The only FAIL that more or less matches this case is:
 CONTENT_FORMAT_SUPPORT-4
 [If the document is not an HTML document, FAIL]
... but the message is more intended to be triggered when a DOM tree does not have &quot;html&quot; at its root than in any other case. In particular, it&apos;s a bit obscure from a usability perspective.

Some more generic error messages might be worth triggering in MAIN_DOCUMENT, e.g.:
 FAIL: the resource was thought to be text but could not be decoded as such [MAIN_DOCUMENT-1]
 WARN: unknown encoding detected &quot;[specified encoding]&quot; [MAIN_DOCUMENT-2]
 FAIL: the supposedly XHTML resource could not be parsed as such [MAIN_DOCUMENT-3]

We&apos;re not supposed to add failures that are not defined in the spec, but then we&apos;ve already added the MAIN_DOCUMENT test anyway and these errors would help users understand that the major problem has to do with the whole document and not part of it. CONTENT_FORMAT_SUPPORT-4 would still be raised when these errors occur, preserving the rules for mobileOK-ness.

[to be discussed]</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>