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.

Example:

$ 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.

Regards
Detlef

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:55 GMT