<?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>6111</bug_id>
          
          <creation_ts>2008-09-23 21:26:46 +0000</creation_ts>
          <short_desc>Unclear error messages when the validator gets an empty document</short_desc>
          <delta_ts>2009-01-29 15:56:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Templates</component>
          <version>HEAD</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Etienne Miret">elimerl</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>ot</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22020</commentid>
    <comment_count>0</comment_count>
      <attachid>599</attachid>
    <who name="Etienne Miret">elimerl</who>
    <bug_when>2008-09-23 21:26:46 +0000</bug_when>
    <thetext>Created attachment 599
Adds a comment on &quot;document end in prolog&quot; errors.

When the validator gets an empty document, the error message will be:
&gt; Line 1, Column 0: end of document in prolog.
which is a little obscure.

Since I assume that a non-empty document can actually end in the prolog, I suggest adding the following hint:
&gt; This error is often caused by an empty document.
without changing the error message itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23326</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2009-01-29 15:56:36 +0000</bug_when>
    <thetext>error explanation was added a little while ago. Forgot to close this bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>599</attachid>
            <date>2008-09-23 21:26:46 +0000</date>
            <delta_ts>2008-09-23 21:26:46 +0000</delta_ts>
            <desc>Adds a comment on &quot;document end in prolog&quot; errors.</desc>
            <filename>empty-document.patch</filename>
            <type>text/plain</type>
            <size>699</size>
            <attacher name="Etienne Miret">elimerl</attacher>
            
              <data encoding="base64">SW5kZXg6IHNoYXJlL3RlbXBsYXRlcy9lbl9VUy9lcnJvcl9tZXNzYWdlcy5jZmcKPT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PQpSQ1MgZmlsZTogL3NvdXJjZXMvcHVibGljL3ZhbGlkYXRvci9zaGFyZS90ZW1wbGF0ZXMvZW5f
VVMvZXJyb3JfbWVzc2FnZXMuY2ZnLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjMzCmRpZmYgLVUg
MyAtcjEuMzMgZXJyb3JfbWVzc2FnZXMuY2ZnCi0tLSBzaGFyZS90ZW1wbGF0ZXMvZW5fVVMvZXJy
b3JfbWVzc2FnZXMuY2ZnCTE4IEFwciAyMDA4IDAyOjU1OjI3IC0wMDAwCTEuMzMKKysrIHNoYXJl
L3RlbXBsYXRlcy9lbl9VUy9lcnJvcl9tZXNzYWdlcy5jZmcJMjMgU2VwIDIwMDggMjE6MTc6MDcg
LTAwMDAKQEAgLTIwMSw2ICsyMDEsMTMgQEAKIDwvbXNnPgogPG1zZyA0Nz4KICAgb3JpZ2luYWwg
PSAiZW5kIG9mIGRvY3VtZW50IGluIHByb2xvZyIKKyAgICB2ZXJib3NlIDw8LkVPRi4KKyAgPGRp
diBjbGFzcz0idmUgbWlkLTQyIj4KKyAgICA8cD4KKyAgICAgICAgVGhpcyBlcnJvciBpcyBvZnRl
biBjYXVzZWQgYnkgYW4gZW1wdHkgZG9jdW1lbnQuCisgICAgPC9wPgorICA8L2Rpdj4KKy5FT0Yu
CiA8L21zZz4KIDxtc2cgNDg+CiAgIG9yaWdpbmFsID0gIiUxIGRlY2xhcmF0aW9uIG5vdCBhbGxv
d2VkIGluIHByb2xvZyIK
</data>

          </attachment>
      

    </bug>

</bugzilla>