Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    MS IE 8 (7,6) does not recognize html entity '

    MS IE 8 (and also older versions) does not recognize html entity '

    This html entity is used by isc.makeXMLSafe when escaping apostrophe.

    Please use html entity ' instead in SmartClient code.

    Here is a sample code:
    isc.Label.create({
    height: 30,
    padding: 10,
    align: "center",
    valign: "center",
    wrap: false,
    icon: "icons/16/approved.png",
    showEdges: true,
    contents: isc.makeXMLSafe("Apostrophe ' is not rendered well on MS IE 8")
    })

    So the fixed code in SmartClient 8.3 looks like this:
    isc.addMethods(isc, {
    ...
    //_$apos:"'",
    _$apos:"'",
    ...
    })

    #2
    Leaving the apostrophe alone is not a valid general solution, it could prematurely close an XML attribute value if the outer quote was an apostrophe. Do you know of another workaround - character code perhaps?

    Comment


      #3
      I do not suggest to leave the apostrophe alone! I agree with you that it is not a solution.

      I suggested to use html entity "'" instead of html entity "'".

      Comment

      Working...
      X