[Webkit-unassigned] [Bug 43914] New: Unicode Chars don't work with innerHTML

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 12 06:30:36 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43914

           Summary: Unicode Chars don't work with innerHTML
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mike at mikewilcox.net


Observed on Safari 5.0.1 6533.17.8 (why don't you guys update the version drop down?)

Unicode works correctly in HTML:
<p>&#10005</p>

But does not work dynamically:
document.getElementsByTagName("div")[0].innerHTML = "&#10005";

I know innerHTML is non-standard, so I tried the following. I may not have done it right:
document.getElementsByTagName("div")[0].appendChild(document.createTextNode("&#10005"))

Finally, I found there is a work-around by adding a space after:
document.getElementsByTagName("div")[0].innerHTML = "&#10005 "; // works!!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list