The following statement does not yield what I expect it to:
var txtNode = document.create TextNode("ESI&m inus;");
txtNode holds a value of "ESI− " instead of "ESI-" where '-' is the
character entity reference for the minus sign, that I expect.
I have tried other variations. I am working with Mozilla and IE because I
want to make NO use of extensions/browser-dependent code, and both (try to)
implement the DOM to varying degrees.
Searches of keyword sets:
createTextNode "character entity" HTML
and the permutations have not been helpful.
Does anyone know the secret?
Comment