Closed
Bug 607640
Opened 14 years ago
Closed 14 years ago
In script dialog text, e.g. alert(), line break characters (e.g. newlines) should constitute bidi paragraph breaks.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 607541
People
(Reporter: aharon, Unassigned)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 GTB7.1 ( .NET CLR 3.5.30729)
In strings passed to alert(), confirm() and prompt() (as well as any similar functions in Javascript or other scripting languages), line breaks (e.g. newlines and carriage returns) should constitute UBA paragraph breaks.
This is the correct behavior according to the Unicode standard <http://unicode.org/reports/tr9/>, and is what happens in IE, Webkit and Opera (the last as of 10.63).
Reproducible: Always
Steps to Reproduce:
Open the attached test case, which does alert('I like א.\n(ב is cool too.)').
Actual Results:
The dialog looks like:
I like א.
(ב is cool too.)
Expected Results:
The dialog should look like:
I like א.
(ב is cool too.)
* <http://www.w3.org/International/docs/html-bidi-requirements/#newline-as-separator>
* <http://www.w3.org/Bugs/Public/show_bug.cgi?id=10813>
* <https://bugzilla.mozilla.org/show_bug.cgi?id=607541>
Reporter | ||
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
This is just bug 607541. The string is shown inside an element with preformatted whitespace.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•