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="◼" /> > > 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 = "▶" ; > 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).