W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2003

Re: Amaya bug: charset information stripped out

From: Irene Vatton <irene.vatton@inrialpes.fr>
Date: Wed, 20 Aug 2003 18:18:29 +0200
To: <ishida@w3.org>
Cc: www-amaya@w3.org, duerst@w3.org
Message-Id: <20030820181829.700acbc3.irene.vatton@inrialpes.fr>

On Wed, 20 Aug 2003 13:26:01 +0100
"Richard Ishida" <ishida@w3.org> wrote:

> Then I'm unfortunately going to have a problem again if I edit and save
> my docs with Amaya.  I put together an example.
> 
> See the enclosed xhtml file (without xml declaration).  The graphic
> withoutXMLDecl.gif shows how this will look in IE6 and, for example,
> Amaya, Netscape 7.1, Mozilla 1.3 and Opera 7.
> 
> If I edited this slightly with Amaya and it added an XML declaration, it
> would continue to look the same for all browsers, except IE 6 -  the
> graphic withXMLDecl.gif shows how it now looks in IE.
> 
> I am now authoring new pages in Standards Mode. With the XML
> declaration, IE is now in Quirks mode because the DOCTYPE wasn't the
> first thing in the file.  If this were some small new browser I wouldn't
> care, but since IE has such a huge market share, this is going to affect
> (and break) the look of my page for the majority of my readers. 
> 
> That's why I don't want Amaya to add the declaration without my
> permission.
> 
> RI

If I understand, your suggestion is to remove the xml declaration and to add a doctype
+ meta element. This is an HTML document, isn't it?

As I explained before,  Amaya is able to generate and edit HTML documents.
In your case I suggest you generate HTML documents instead of
XHTML documents (we can also add the HTML option in the New menu).

The xml declaration is there not only to define the charset. It also allows browsers able to read
xml documents to use an xml parser instead of an html parser and so to check that the 
document is well formed.
What HTML guys think about that?
     Irene.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France
Received on Thursday, 21 August 2003 23:37:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:40 UTC