Re: Handling invalid HTML

2005-10-19 Thread Richard M. Stallman
Anyway, the following patch will allow Emacs to recognize encoding with either quotation marks (and for the attribute `content-type' quotation marks are optional): If no one objects in the next week, would you please install it? ___ Emacs-d

Re: Handling invalid HTML

2005-10-19 Thread Juri Linkov
> http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2 > "By default, SGML requires that all attribute values be delimited > using either double quotation marks (ASCII decimal 34) or single > quotation marks (ASCII decimal 39). ... In certain cases, authors > may specify the value

Re: Handling invalid HTML

2005-10-18 Thread Richard M. Stallman
3. Visiting Mozilla Firefox bookmark file in Emacs also can't detect the type of this file. Emacs opens it in SGML mode whereas it is actually HTML file. This problem is caused by the default value of `magic-mode-alist'. Maybe the `.html' extension in `auto-mode-alist' should

Handling invalid HTML

2005-10-18 Thread Jonathan Yavner
Juri Linkov writes: > 1. The valid string delimiter for HTML attribute values is the > quotation character. However, some HTML files on the Web use > apostrophes, e.g. > > The program that generates such non-standard meta headers is > identified as 'Microsoft DHTML Editing Control' (no surpris

Handling invalid HTML

2005-10-18 Thread Juri Linkov
Current rules of recognizing HTML files in Emacs are too strict: 1. The valid string delimiter for HTML attribute values is the quotation character. However, some HTML files on the Web use apostrophes, e.g. The program that generates such non-standard meta headers is identified as 'Microsoft D