W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2004

Bug report: unknown options

From: Detlef Rick <d.rick@freenet.de>
Date: Fri, 10 Dec 2004 16:23:06 +0100
Message-ID: <41B9BF5A.3040204@freenet.de>
To: html-tidy@w3.org

HTML Tidy for Linux/x86 released on 1st August 2004

Tidy happens to overwrite the original file in presence of unknown options.
As tidy doesn't distinguish long options and multiple one character options
the usage of unknown options or misspelling may leed to data corruption.


$ tidy -xhtml index.html
HTML Tidy: unknown option: x
HTML Tidy: unknown option: h
HTML Tidy: unknown option: t
HTML Tidy: unknown option: l

Tidy will modify the original file but it is not supposed to.
As a fix I suggest, tidy should abort with an error message in presence of
unknown options.


Detlef Rick <d.rick@freenet.de>
Hohe Str. 31, 21073 Hamburg, Germany
Tel.: +49 40 7656974
Received on Friday, 10 December 2004 16:28:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC