RE: HTML or XHTML - why do you use it?

> > <Ian>
> >  * If a user saves an XHTML-as-text/html document to disk and later
> >    reopens it locally, triggering the content type sniffing 
> code since
> >    filesystems typically do not include file type information, the
> >    document could be reopened as XML, potentially resulting in
> >    validation errors, parsing differences, or styling differences.
> > </Ian>
> > 
> > 
> > It depends on what application the user has associated with the file
> > extension, does it not?  If the user saves the file with a 
> .htm extension,
> > then his/her HTML User Agent will most likely be the one to 
> open the file.  
> 
> Extension?  What extension?  On Windows, perhaps, but not on 
> other OSes.  Magic
> number detection is a lot more likely on Unix, eg (especially 
> since there is
> really no good reason to give the file a ".htm" extension 
> when saving it, since
> almost all software I know of will deal with a filename 
> without an extension
> (again, on Unix)).


Yes, I was referring to Windows (or more precisely, GUI OSes where you would
open a file by (double)clicking the icon of the file).  Hadn't really
thought about purely text-based OSes.

-Pete

Received on Tuesday, 7 January 2003 14:11:30 UTC