<?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>3992</bug_id>
          
          <creation_ts>2006-11-20 18:05:50 +0000</creation_ts>
          <short_desc>non-unix newlines confuse the parser</short_desc>
          <delta_ts>2007-04-02 06:31:01 +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>Parser</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.aadmm.de/en/mathml.xhtml</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.8.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthias Mauch">matthias.mauch</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          <cc>bjoern</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>12971</commentid>
    <comment_count>0</comment_count>
    <who name="Matthias Mauch">matthias.mauch</who>
    <bug_when>2006-11-20 18:05:50 +0000</bug_when>
    <thetext>It seems that W3C Unicorn have problems in following situation:

Profil: General Conformance Check
Address: http://www.aadmm.de/en/mathml.xhtml
Doctype: XHTML 1.1 plus MathML 2.0 plus SVG 1.1
Check failed...

If I test this page with http://validator.w3.org/
then I get passed validation &quot;This Page Is Valid
XHTML 1.1 plus MathML 2.0 plus SVG 1.1&quot;

Is this Doctype not available in Unicorn, because I can&apos;t
select it in the Profil &quot;Validate Markup (HTML, etc.)&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12976</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-11-21 00:58:00 +0000</bug_when>
    <thetext>This is a problem with the development version of the markup validator (which the unicorn test instance uses) with some types of documents, perhaps due to some specific line ending types.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14296</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-03-02 03:06:50 +0000</bug_when>
    <thetext>Björn, could this be a bug in S::P::O? 

It seems that check&apos;s preparse does find the doctype, and although the document given as a test case has the particularity of having the XML decl and doctype decl on the same line, I am not aware that it is forbidden.

I don&apos;t think it&apos;s a bug with check, nor does it look like a bug in OpenSP - see http://qa-dev.w3.org/wmvs/0.7/check?uri=http%3A%2F%2Fwww.aadmm.de%2Fen%2Fmathml.xhtml
so I&apos;m suspecting a problem in S:P:O. 

Please look into it. If this is a bug in SPO, closing this bug with a pointer to the SPO bug tracking URI would be good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14455</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-03-16 00:39:20 +0000</bug_when>
    <thetext>OK, I think I found and fixed the issue: newlines. Apparently the fact that the document mentioned above is using DOS newlines was the trigger. Converting the newlines to unix ones gave a more expected validation results.

I have a tentative fix 
http://lists.w3.org/Archives/Public/www-validator-cvs/2007Mar/0082.html
which hopefully does the right thing by converting newlines systematically.

Apparently it fixes the issue for the validator. 
I still think there might be some bug with SPO, though. 

Matthias, is it OK to save your mathml.xhtml document as test case in our test suite?

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14607</commentid>
    <comment_count>4</comment_count>
    <who name="Matthias Mauch">matthias.mauch</who>
    <bug_when>2007-03-30 17:15:04 +0000</bug_when>
    <thetext>&gt; Matthias, is it OK to save your mathml.xhtml document as test case in our test
&gt; suite?
Yes, it&apos;s ok. I have no problems if you save my document as test case. 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14620</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-04-02 06:31:01 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Yes, it&apos;s ok. I have no problems if you save my document as test case. 

Wonderful. I&apos;ve added the file as test case, and can close the bug. 
The version of the validator with the fix will go in beta test within days.

Thank you
olivier</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>