This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Quite often users of the validator get puzzled at "there is no such attribute oNClick", because of case-sensitivity of XHTML, or other such typos. A useful feature would be to append to the message there is no attribute "onMouseover" a fuzzy-match saying: did you mean "onmouseover?
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?
Maybe this or some of the other modules it mentions? http://search.cpan.org/dist/String-Approx/Approx.pm
(In reply to comment #2) > Maybe this or some of the other modules it mentions? > 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.
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