S
still just me
How universal is this symbol? Can I depend on it's implementation at
all or should I just superscript a small font ?
Thanks,
all or should I just superscript a small font ?
Thanks,
How universal is this symbol? Can I depend on it's implementation at
all or should I just superscript a small font ?
cwdjrxyz said: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.
How universal is this symbol?
Can I depend on it's implementation at
all or should I just superscript a small font ?
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: & <
> " &apos 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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.