No apos in htmlentitydefs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kent Johnson

    #1

    No apos in htmlentitydefs

    I see that htmlentitydefs. name2codepoint does not include 'apos' as one of the recognized names. Is this intentional or a bug?

    In fact ' is not a recognized entity in HTML 4.01; see this list:
    http://www.w3.org/TR/html4/sgml/entities.html#misc

    But it is recognized in XHTML 1.0:
    http://www.w3.org/TR/xhtml1/dtds.htm...ial_characters

    and AFAIK it is commonly supported by browsers which IMO argues that it should be included.

    Any thoughts?
    Kent
  • Fredrik Lundh

    #2
    Re: No apos in htmlentitydefs

    Kent Johnson wrote:
    [color=blue]
    > I see that htmlentitydefs. name2codepoint does not include 'apos'
    > as one of the recognized names. Is this intentional or a bug?
    >
    > In fact ' is not a recognized entity in HTML 4.01; see this list:
    > http://www.w3.org/TR/html4/sgml/entities.html#misc
    >
    > But it is recognized in XHTML 1.0:
    > http://www.w3.org/TR/xhtml1/dtds.htm...ial_characters
    >
    > and AFAIK it is commonly supported by browsers which IMO argues
    > that it should be included.[/color]

    it's a predefined XML entity. a classic HTML parser won't understand
    it, and the W3C HTML validator chokes on it, so it should definitely not
    appear in a list of *HTML* entities.

    </F>



    Comment

    Working...