W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

RE: Resolving Entities

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Fri, 19 Jan 2001 16:00:15 -0500
To: <html-tidy@w3.org>
Michael Goldberg wrote:

> &#212; entity reference.  I thought it was supposed to be the trademark
> symbol (superscript TM).

No -- see


and look at decimal 212..

> However, the following code: ...
> Prints the following output:
> 		Name: #textValue: **

As it should.  Try &#8482; instead for the trademark symbol.

How do you find this out?  You look at an [x]HTML DTD:

  For HTML 4.01:


  For XHTML 1.0:


In each of these DTDs, there are references to 3 entity files -- for
Symbols, Latin1, and "Special".  These are the places where things like
&nbsp;, etc. are defined.  So for example, taking a glance at the XHTML 1.0
Strict DTD, you'll see in "xhtml-symbol.ent" (referenced in the two XHTML
DTDs above) this:

    <!ENTITY trade "&#8482;">
    <!-- trade mark sign, U+2122 ISOnum -->

Received on Friday, 19 January 2001 16:02:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:49 UTC