W3C home > Mailing lists > Public > www-validator@w3.org > February 2009

Validator Dev Watch: fuzzy matching for unknown elements/attributes

From: olivier Thereaux <ot@w3.org>
Date: Mon, 16 Feb 2009 13:11:37 -0500
Message-Id: <2FD9C9AE-7FB1-4F7A-BFC3-F7228C4C007B@w3.org>
To: www-validator Community <www-validator@w3.org>

Part of my hacking last week on the markup validator involved setting  
up "fuzzy matching" of unknown elements/attributes in order to have  
the validator say:
“Line 12, Column 14: there is no attribute "crass". Maybe you meant  
"class" or "classid"?”

The code is ready for testing on our development instance:

… and I made a little writeup about the ideas and implementation  

Teaser: did you know that errors about unknown attributes/elements  
(either because of typo, case or simply non standard elt/attr) is by  
far the most common type of errors reported by the Markup Validator?

Comments and thoughts welcome here, or on the systeam blog. In  
* What do you think of this feature? Would you have implemented it  
* Any suggestion for a better way to word/present the suggested  
correction for unknown element/attributes?
* Any thought on other small improvements to the validator which would  
dramatically improve its usability?

olivier Thereaux - W3C Open Source Software : http://www.w3.org/Status
                       Do you ♥ Validators?
   Donate or become a Sponsor: http://www.w3.org/QA/Tools/Donate
Received on Monday, 16 February 2009 18:11:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:58 UTC