|
Posted by still just me on 11/20/07 04:15
On Mon, 19 Nov 2007 08:53:11 +0000, Toby A Inkster
<usenet200707@tobyinkster.co.uk> wrote:
>cwdjrxyz wrote:
>
>> For recent browsers, I find the named entity for the degree symbol
>> works on IE6, Firefox, SeaMonkey, Opera, and Safari for Windows
>> browers. It also works on the W3C Amaya browser and a simulator for
>> the old MSNTV box.
>
>It's worth noting that for XHTML, decimal character references are
>normally preferable to named entities. This is because non-validating XML
>parsers (including most web browsers) do not process the file's DTD, which
>is where entities (except for the five predefined XML entities: & <
>> " ') are defined.
>
>In practice, most browsers do have workarounds which apply their
>knowledge of HTML entities to XHTML, but it's a bad idea to rely on
>browser workarounds.
>
>For an example of a browser which *doesn't* do this workaround, take a
>look at an XHTML file (sent with an XML MIME type) in Opera 6.0. Named
>entities such as ° are not understood. But if you send the file with
>an HTML MIME type, the entities magically come to life. This is not a bug:
>in fact, it's being too strict for its own good! This behaviour was
>changed in Opera 7.0.
Thanks all.
Navigation:
[Reply to this message]
|