<?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>6284</bug_id>
          
          <creation_ts>2008-12-06 22:13:47 +0000</creation_ts>
          <short_desc>No tests performed when the XML encoding is set to an unknown value</short_desc>
          <delta_ts>2009-04-21 07:43:22 +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>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="fd">fd</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22699</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2008-12-06 22:13:47 +0000</bug_when>
    <thetext>When the extracted encoding from the XML declaration does not match a well-known encoding, no tests are run and no errors are returned.

Ex:
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;unknown&quot;?&gt;

The error occurs because in that case &quot;body&quot; is set to null in that case in HTTPTextResource.java.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24878</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-04-21 07:43:22 +0000</bug_when>
    <thetext>Bug 5921, bug 6284, bug 6718 and bug 6818 are similar because they all relate to primary documents that cannot be decoded nor parsed. The Checker should return an error in such cases, and not raise an exception that makes it look as if something is wrong within the Checker.

See comments in Bug 5921 for more details.

There is one more problem raised by this bug: when the stated encoding is defined in the XML, we have no way to represent it in the moki if the text content cannot be decoded in the end. In the moki, the XML encoding is defined in the xmlDecl element, serialized by the XhtmlContent class. But the code requires the body to have been decoded. I&apos;ll raise another bug on this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>