<?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>6283</bug_id>
          
          <creation_ts>2008-12-06 21:52:30 +0000</creation_ts>
          <short_desc>No tests/errors returned when a &quot;standalone&quot; attribute is defined in the XML declaration</short_desc>
          <delta_ts>2008-12-06 22:02:59 +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="Abel Rionda">abel.rionda</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22697</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2008-12-06 21:52:30 +0000</bug_when>
    <thetext>Reported as specific to standalone=&quot;yes&quot; in:
http://lists.w3.org/Archives/Public/public-mobileok-checker/2008Oct/0007.html

Actually, the error occurs whenever the &quot;standalone&quot; attribute is defined in the XML declaration, e.g.:
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;no&quot;?&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22698</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2008-12-06 22:02:59 +0000</bug_when>
    <thetext>Fixed the getXMLPrologEncoding method in HTTPTextResource.java.

Regular expressions are greedy by default in Java. The extracted encoding string contained all characters up until the end of the value of the last attribute in the XML declaration.

For instance, if the XML declaration was:
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;no&quot;?&gt;
... the extracted encoding was:
  utf-8&quot; standalone=&quot;no
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>