Stephan Goetter wrote: > > White-space and SGML comments are ignored by HTML. The first TAG has to be > > but I guess that before this tag an unlimited amount of white-space > > and SGML-comment may occur. > > But \n isn't a white-space, or am I wrong here. (after " For example, when kmimemagic wouldn't know " the code would compare "" with "" and fail. \n is white-space. > But are standards so important for file-type-detection ? Yes. If a HTML file starts with "GIF89a" we will not recognize it. -- The "gui" in "Penguin" is pronounced "K-D-E"