Re: XUL and Unicode: button label

Neil Deakin <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
On 11-11-24 4:09 AM, Paul Miller wrote:
> Hi Guys,
>
> I have a button featuring a unicode character as a button label:
>
> <button id="foo" label="&#9724;" />
>
> The unicode character is displayed correctly upon loading of the xul
> page.
>
> Changing the value of the label fails, however via JS:
>
> document.getElementById( "foo" ).label = "&#9654;" ;
>

Escape characters in Javascript are done with the syntax: \u1234

The syntax you used is for xml and will only work if the text is in an 
xml document (or xul or course).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.