#22 [FEATURE] Ignore unknown element

open
nobody
None
5
2012-10-08
2004-03-11
Cyrille Morvan
No

Is it possible to have an option to ignore unknown
elements.

Tidy.setIgnoreUnknownElement(boolean);

I'm using today cvs version, and I get :

line 3 column 261 - Error: <a_href> is not recognized!
I don't care if a_href is not recognized !

Thank you.

Discussion

  • Logged In: YES
    user_id=189954

    I needed this feature, so I patched the 2004-08-11 cvs to
    add it (for /html/head only, but the patch should make the
    mechanism fairly clear for a more complete implementation).
    I couldn't figure out how to attach a file here, though, so
    I've attached the patch to a new RFE: 1113498,
    http://sourceforge.net/tracker/index.php?func=detail&aid=1113498&group_id=13153&atid=363153

     
  • Peter Halasz
    Peter Halasz
    2006-08-21

    Logged In: YES
    user_id=110330

    I'm also having trouhle, and require this feature. In my
    case due to <RIGHT> tags.

    e.g.

    line 137 column 338 - Error: <right> is not recognized!

    This document has errors that must be fixed before
    using HTML Tidy to generate a tidied up version.