W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2013

Re: How to make Tidy skip unknown elements (not standard)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 10 Jan 2013 23:16:21 +0100
To: therion@ninth-art.de
Cc: html-tidy@w3.org
Message-ID: <fbfue8lpikv7c06kp4oki8j6ppeeakim2g@hive.bjoern.hoehrmann.de>
* Georg Bege wrote:
>But if it hits an element which is not standard and it cannot find that,
>it's an fatal error to Tidy and he doesnt go on parsing -
>can I ignore this somehow?
>
>Because I'd like to benefit from the rest of the code, even
>if one element is <bark> or <marquee>?

You can declare the unkown element using the --new-*-tags options, and
you can force Tidy to emit what it has read of the document using the
--force-output option.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Thursday, 10 January 2013 22:16:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 10 January 2013 22:16:51 GMT