<?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>4412</bug_id>
          
          <creation_ts>2007-03-22 02:03:44 +0000</creation_ts>
          <short_desc>Fuzzy-match nonexistent tag and attribute names (did you mean?...)</short_desc>
          <delta_ts>2009-02-13 21:14:38 +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>check</component>
          <version>0.7.4</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>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olivier Thereaux">ot</reporter>
          <assigned_to name="Olivier Thereaux">ot</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>14525</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-03-22 02:03:44 +0000</bug_when>
    <thetext>Quite often users of the validator get puzzled at &quot;there is no such attribute oNClick&quot;, because of case-sensitivity of XHTML, or other such typos.

A useful feature would be to append to the message
there is no attribute &quot;onMouseover&quot;
a fuzzy-match saying: 
did you mean &quot;onmouseover?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14526</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-03-22 02:07:22 +0000</bug_when>
    <thetext>What that would imply on the technical side is:
* a dictionary of all elements and attributes, from the DTD of the document type used
* a fuzzy-matching engine comparing the offending element/attribute with the dictionary

The former is relatively easy to build. Anyone knows of a good implementation of the latter, in CPAN if possible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14529</commentid>
    <comment_count>2</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2007-03-22 16:02:44 +0000</bug_when>
    <thetext>Maybe this or some of the other modules it mentions?
http://search.cpan.org/dist/String-Approx/Approx.pm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23729</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2009-02-13 19:13:08 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Maybe this or some of the other modules it mentions?
&gt; http://search.cpan.org/dist/String-Approx/Approx.pm


String::Approx is not bad. I got some confusing results at frist but after a bit of wrangling I find it reasonably effective. 

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23731</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2009-02-13 21:14:38 +0000</bug_when>
    <thetext>Done in dev, test case added.


http://qa-dev.w3.org/wmvs/HEAD/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4412-fuzzymatch.xhtml;ss#result
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>