<?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>889</bug_id>
          
          <creation_ts>2004-09-23 04:33:59 +0000</creation_ts>
          <short_desc>checklink reports bogus broken fragments</short_desc>
          <delta_ts>2004-10-10 21:10:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>LinkChecker</product>
          <component>checklink</component>
          <version>4.0</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henryk Pl">henryk</reporter>
          <assigned_to name="Ville Skyttä">ville.skytta</assigned_to>
          
          
          <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>2367</commentid>
    <comment_count>0</comment_count>
    <who name="Henryk Pl">henryk</who>
    <bug_when>2004-09-23 04:33:59 +0000</bug_when>
    <thetext>Moin,

I&apos;m currently checking links for a new version of http://de.selfhtml.org (this
is not the most current version, but it demonstrates the problem, too) and
checklink seems to report _all_ links to fragments on some pages as broken
although they are perfectly fine.

The destination pages this happens most often with are
http://de.selfhtml.org/html/referenz/elemente.htm,
http://de.selfhtml.org/css/formate/einbinden.htm and
http://de.selfhtml.org/html/attribute/eventhandler.htm

Reproducible: Always
Steps to reproduce: 
 1. Check links on http://de.selfhtml.org/html/tabellen/aufbau.htm

Actual results: All links to fragments on
http://de.selfhtml.org/html/referenz/elemente.htm are reported as broken.
Expected results: All links on that page are valid so there should be no error
report.

Note: In an recursive run on my own machine checklink even said:
-----
Processing      http://...../selfhtml81/html/referenz/elemente.htm


Anchors

Found 0 anchors.
-----
which absolutely is not true.

And yes, as far as I can tell all involved pages are valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2369</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2004-09-23 16:31:18 +0000</bug_when>
    <thetext>Thanks for the report.  This is indeed a bug in the link checker.  I have
created a minimal reproducer here:

  http://qa-dev.w3.org/~ville/style-anchor-bug/
  http://qa-dev.w3.org/~ville/style-anchor-bug/target.html

I haven&apos;t examined why it happens yet, but &quot;&amp;lt;style&amp;gt;&quot; in the &lt;meta&gt; element
of target.html (as well as your elemente.htm) causes the link checker to fail to
find any anchors in that document.  It&apos;s only the specific &quot;&amp;lt;style&amp;gt;&quot;
string that causes problems, others seem to be fine.

Side note, completely offtopic: the &quot;&amp;lt;sub &amp;lt;&quot; and &quot;&amp;lt;tfoot&amp;gt;, &amp;lt;&quot; in
your keyword list look inconsistent with the others in it... ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2493</commentid>
    <comment_count>2</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2004-10-10 21:10:17 +0000</bug_when>
    <thetext>Ok, got it.  Due to a stupid bug, we were pretty often passing the entire HTTP
response (including HTTP headers) to HTML::Parser.  The parser module is
apparently pretty lax wrt. this, so the issues caused were rare.

What triggered the failure in this case is HTML::HeadParser&apos;s behaviour of
expanding &lt;meta&gt; tags into fake HTTP headers, which in my testcase from comment
1 resulted in &quot;X-Meta-Keywords: &lt;style&gt;&quot;, and the parser choked on it.

This should be fixed in CVS, and the latest development version (which will
pretty soon be released as 4.1) is running at http://qa-dev.w3.org/wlc/checklink
for testing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>