<?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>798</bug_id>
          
          <creation_ts>2004-06-15 09:48:30 +0000</creation_ts>
          <short_desc>Error instead of warning for ampersand as data in XHTML</short_desc>
          <delta_ts>2006-11-08 01:14:37 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www1.ndr.de/ndr/ndr_pages_idx/0,2571,SPM880,00.html</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="Joern Hofer">joern.hofer</reporter>
          <assigned_to name="Terje Bless">link</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>2015</commentid>
    <comment_count>0</comment_count>
    <who name="Joern Hofer">joern.hofer</who>
    <bug_when>2004-06-15 09:48:30 +0000</bug_when>
    <thetext>Hi,
i got a page with a link and title-Tag like this:
&lt;li&gt;&lt;a href=&quot;/ndr/ndr_pages_idx/0,2571,SPM908,00.html&quot; title=&quot;KONZERTE &amp;
EVENTS&quot;&gt;&lt;img src=&quot;/container/ndr_style_images_gen_default/0,2718,65996,00.jpg&quot;
height=&quot;19&quot; alt=&quot;KONZERTE &amp; EVENTS&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
and the Validtor still says, it is valid XHTML 1.0 Strict, even the amersand is
used as Data.

If i got a page with another Error, the Validtor correctly says: Ampersand used
as Data.

If i don&apos;t have any Error, except the Ampersand, he says, it ist Valid.

Validating with the CSE HTML Validator Pro and the http://www.validome.org/:
Both got an error with the Amerpsand (and they are right, i think).

I think this must be a Bug with the Validator.

The URL above is a dynamic-page, so it could be, that in 1 hour there isn&apos;t any
ampersand, so i paste in here some source around of the error:

&lt;div id=&quot;leftNav&quot; class=&quot;submenu&quot;&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/ndr/ndr_pages_idx/0,2571,SPM902,00.html&quot; title=&quot;KINO-TIPPS&quot;&gt;&lt;img
src=&quot;/container/ndr_style_images_gen_default/0,2718,52182,00.jpg&quot; height=&quot;19&quot;
alt=&quot;KINO-TIPPS&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/ndr/ndr_pages_idx/0,2571,SPM1476,00.html&quot;
title=&quot;FILMFESTIVALS&quot;&gt;&lt;img
src=&quot;/container/ndr_style_images_gen_default/0,2718,105874,00.jpg&quot; height=&quot;19&quot;
alt=&quot;FILMFESTIVALS&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/ndr/ndr_pages_idx/0,2571,SPM904,00.html&quot; title=&quot;FILME IM
FERNSEHEN&quot;&gt;&lt;img
src=&quot;/container/ndr_style_images_gen_default/0,2718,52190,00.jpg&quot; height=&quot;19&quot;
alt=&quot;FILME IM FERNSEHEN&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/ndr/ndr_pages_idx/0,2571,SPM908,00.html&quot; title=&quot;KONZERTE &amp;
EVENTS&quot;&gt;&lt;img src=&quot;/container/ndr_style_images_gen_default/0,2718,65996,00.jpg&quot;
height=&quot;19&quot; alt=&quot;KONZERTE &amp; EVENTS&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/ndr/ndr_pages_idx/0,2571,SPM910,00.html&quot; title=&quot;CD-TIPPS&quot;&gt;&lt;img
src=&quot;/container/ndr_style_images_gen_default/0,2718,66000,00.jpg&quot; height=&quot;19&quot;
alt=&quot;CD-TIPPS&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/ndr/ndr_pages_idx/0,2571,SPM912,00.html&quot; title=&quot;QUIZ &amp;
SPIELE&quot;&gt;&lt;img src=&quot;/container/ndr_style_images_gen_default/0,2718,66004,00.jpg&quot;
height=&quot;19&quot; alt=&quot;QUIZ &amp; SPIELE&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/ndr/ndr_pages_idx/0,2571,SPM1102,00.html&quot; title=&quot;LEUTE&quot;&gt;&lt;img
src=&quot;/container/ndr_style_images_gen_default/0,2718,86754,00.jpg&quot; height=&quot;19&quot;
alt=&quot;LEUTE&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;

Am i right or am i stupid? ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2016</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2004-06-15 13:11:30 +0000</bug_when>
    <thetext>I am pretty sure that you are right, and that this is why there is the &quot;Note:
The Validator XML support has some limitations.&quot; link as the very first thing in
the XHTML validation results page... See http://openjade.sourceforge.net/doc/xml.htm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025</commentid>
    <comment_count>2</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2004-06-17 13:35:51 +0000</bug_when>
    <thetext>You would get a warning, see

http://www.websitedev.de/markup/validator/tests/ampersand-as-data.html,validate

Even with Validome.org all you get is a warning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4225</commentid>
    <comment_count>3</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2005-02-05 04:28:47 +0000</bug_when>
    <thetext>This was a symptom of some warnings not getting displayed when the page was
otherwise valid; the warning about the bare amperstand was always there, it
was just being supressed.

This issue has been resolved in current development code.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12683</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-10-31 06:39:46 +0000</bug_when>
    <thetext>checking a bunch of bugs today, I noticed that S:P:O seems to not give this &quot;ampersand as data&quot; warning, whereas openSP does. 

compare:
http://qa-dev.w3.org/wmvs/0.7.3/check?uri=http%3A%2F%2Fwww1.ndr.de%2Fndr%2Fndr_pages_idx%2F0%2C2571%2CSPM880%2C00.html
and
http://qa-dev.w3.org/wmvs/HEAD/check?uri=http%3A%2F%2Fwww1.ndr.de%2Fndr%2Fndr_pages_idx%2F0%2C2571%2CSPM880%2C00.html

Bjoern, is that a bug in S:P:O? Should I be sending it your way?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12687</commentid>
    <comment_count>5</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2006-10-31 07:44:47 +0000</bug_when>
    <thetext>I think I fixed this bug in SGML::Parser::OpenSP CVS in so far as it is the cause of this issue. A workaround in check would be to push() &apos;xml&apos; twice into the options array, only the last item in -&gt;warnings(...) will be ignored, as far as I could tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12846</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-11-07 06:22:10 +0000</bug_when>
    <thetext>Bjoern,

(In reply to comment #5)
&gt; I think I fixed this bug in SGML::Parser::OpenSP CVS in so far as it is the
&gt; cause of this issue.

Have you tested it successfully? I updated my version (on laptop computer) of s.p.o to the version in CVS late last week, and saw no change in behavior, at least from the point of view of 
check?uri=http%3A%2F%2Fwww.websitedev.de%2Fmarkup%2Fvalidator%2Ftests%2Fampersand-as-data.html


&gt; A workaround in check would be to push() &apos;xml&apos; twice into
&gt; the options array, only the last item in -&gt;warnings(...) will be ignored, as
&gt; far as I could tell.

I did that in check, and unless I misunderstood your suggestion, it is not working, either.

http://qa-dev.w3.org/wmvs/HEAD/check?uri=http%3A%2F%2Fwww.websitedev.de%2Fmarkup%2Fvalidator%2Ftests%2Fampersand-as-data.html

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12850</commentid>
    <comment_count>7</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2006-11-07 11:20:42 +0000</bug_when>
    <thetext>Yes, I tested it and I&apos;ve now also added a new test case t/22mwarnings.t to CVS that tests for this particular case twice. The test succeeds on my platform. If the Validator does not handle it properly, it might be that the branch where you push the option is never executed due to some XHTML detection issues, as we discussed on IRC. If t/22mwarnings.t succeeds on your platform, I don&apos;t see how this can be a problem in SGML::Parser::OpenSP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12851</commentid>
    <comment_count>8</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2006-11-07 11:40:33 +0000</bug_when>
    <thetext>I think the current code just lacks

  $opensp-&gt;warnings(@spopt);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12857</commentid>
    <comment_count>9</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-11-08 01:14:37 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; I think the current code just lacks
&gt; 
&gt;   $opensp-&gt;warnings(@spopt);

Confirmed, and closed. Pushing to CVS in a moment.
Thanks Bjoern.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>