Re: [xslt] IE Mac / Encoding



On Fri, Jul 12, 2002 at 06:07:50AM -0700, Jerome Pesenti wrote:
> By default, libxslt outputs the encoding meta tag as
> follow
> 
> <meta content="text/html; charset=UTF-8"
> http-equiv="Content-Type">
> 
> But it seems that IE for Mac does not switch to UTF-8
> when encountering this tag.
> 
> Changing it to
> 
> <meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8">
> 
> (i.e., the http-equiv attribute placed before the
> content attribute)
> makes the trick.

  Grumble ...

> Is that an IE Mac problem or is the HTML specification
> enforcing this order (in general the order does not
> matter but all the examples provided in the HTML 4.0
> specification put the http-equiv parameter first) ...
> in any case it would be nice to output the second form
> by default...

Attribute order should not be significant so this is clearly
a bug. Anyway I changed the libxml2 code to create the attributes
in the same order.

  This also generated changes in the libxslt regression tests,

    thanks for the report,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]