Closed Bug 42990 Opened 25 years ago Closed 25 years ago

alert('') not able to display ö

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows 95
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Sebastian, Assigned: rogerl)

Details

Attachments

(1 file)

It seems as if current builds (06/17) are not able to display characters like ö & ... in a JavaScript alert. They will just display the unencoded character series. Oohh, NS4 displays them neither, is that intended behavior? L10n will be crying... I have absolutely no clue which component this bug should go to, Asa, would you be so kind...
Could yo provide a samle testcase? Moving to Javascript engine, but could be a DOM issue.
Assignee: asa → rogerl
Component: Browser-General → Javascript Engine
QA Contact: doronr → pschwartau
http://www.w3.org/TR/html4/types.html#h-6.14 "Script data ( %Script; in the DTD) can be the content of the SCRIPT element and the value of intrinsic event attributes. User agents must not evaluate script data as HTML markup but instead must pass it on as data to a script engine. The case-sensitivity of script data depends on the scripting language. Please note that script data that is element content may not contain character references, but script data that is the value of an attribute may contain them. The appendix provides further information about specifying non-HTML data." So, inside a script, & will stay &, while as part of an event like onload, it will be parsed before given to the JS engine. I just tested it using onload="alert('ä&')" and that worked fine. I strongly doubt the JS engine parses & into an &, since it's expecting raw data, using Unicode where needed, not HTML/SGML. I'll look for the ECMAScript specs and study them, and see what it says.
Tentatively marking this WONTFIX as suggested by doron. Inside <script>...</script> you can use either \uXXXX with the correct character encoding specified (or know which is the default), or directly use characters like ö.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: