tags:

views:

23

answers:

1

I had picked source code of some sites ramdomly like www.nypost.com, facebook.com , www.bigpond.com. When i had provided these three htmlpages as input to tidy (command line with -m option), what i had noticed is that its removing the DOC Type declaration and modifying the source code.

Can anyone specify why its happening like that, is it a bug in Tidy or so.

A: 

It appears to be configurable:

http://tidy.sourceforge.net/docs/quickref.html#doctype

Álvaro G. Vicario