Problems with HTML entities and javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mick White

    #1

    Problems with HTML entities and javascript




    Viewing the first URL in my installed version of Firefox (.8, Mac), the
    following HTML entities:
    S=["♥","&di ams;","♣" ,"♠" "&hearts"
    are rendered as various "pipe" symbols.

    Is this a limitation of the browser, or am I doing something wrong?

    Works in Mac versions NN7, Mozilla (latest) and Safari 1.0.2, but IE5.2
    won't survive a refresh (I'm not too concerned with this POJ).

    I am not employing object detection at this point, I merely need to
    understand which HTML entities are universal, or which DTD to use, or
    which character set, or what.....

    Mick

  • Martin Honnen

    #2
    Re: Problems with HTML entities and javascript



    Mick White wrote:
    [color=blue]
    > http://www.mickweb.com/javascript/arrays/cardhand.html
    > http://www.mickweb.com/javascript/arrays/cards.js
    >
    > Viewing the first URL in my installed version of Firefox (.8, Mac), the
    > following HTML entities:
    > S=["♥","&di ams;","♣" ,"♠" "&hearts"
    > are rendered as various "pipe" symbols.
    >
    > Is this a limitation of the browser, or am I doing something wrong?
    >
    > Works in Mac versions NN7, Mozilla (latest) and Safari 1.0.2, but IE5.2
    > won't survive a refresh (I'm not too concerned with this POJ).[/color]

    I have visited cardhand.html with Netscape 7.1, FireFox 0.8 and 0.9 (all
    on Windows) and can't find anything wrong with the display of those
    entity references.
    As for Firefox 0.8 Mac, have you checked whether the entity references
    are displayed correctly when used in static HTML? That way you could
    decide whether it is a JavaScript problem at all or simply a rendering
    glitch.
    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    • Mick White

      #3
      Re: Problems with HTML entities and javascript

      Martin Honnen wrote:
      [color=blue]
      > Mick White wrote:[/color]
      ....[color=blue][color=green]
      >>
      >> Viewing the first URL in my installed version of Firefox (.8, Mac),
      >> the following HTML entities:
      >> S=["♥","&di ams;","♣" ,"♠"]
      >> are rendered as various "pipe" symbols.
      >>[/color][/color]

      [color=blue]
      > As for Firefox 0.8 Mac, have you checked whether the entity references
      > are displayed correctly when used in static HTML? That way you could
      > decide whether it is a JavaScript problem at all or simply a rendering
      > glitch.[/color]

      Same thing, ♥ renders as | (thick and bold).
      Thanks, Martin.
      Mick

      Comment

      Working...