JavaScript, document.write prints words back to front (reverse)

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
10 years ago
10 years ago

People

(Reporter: zarmi2006, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9) Gecko/2008052906 Firefox/3.0

In JavaScript, document.write prints words back to front (reverse), after long loop and printing many symbols

Reproducible: Always

Steps to Reproduce:
1. Open this pages
http://zarmi.narod.ru/unicode1.html
http://zarmi.narod.ru/unicode2.html
2. Wait....
3. Scroll bottom (down) the page 
Actual Results:  
At top page printed:
Time of script action: 0.388 sec.
But at bottom page printed:
.ces 883.0 : noitca tpircs fo emiT


Expected Results:  
At bottop page printed:
Time of script action: 0.388 sec.

This bug Opera have too.
IE and Google Chrome does not have.

If I want copy string: ".ces 883.0: noitca tpircs fo emiT"
In clipboard it appears "Time of script action: 0.388 sec." It's strange
(Reporter)

Updated

10 years ago
Keywords: js1.7
Version: unspecified → 3.0 Branch

Comment 1

10 years ago
Created attachment 346317 [details]
smaller testcase

this is due to character U+202E (right-to-left override)
That's probably not a bug.

Updated

10 years ago
Component: General → Layout: Text
Keywords: js1.7
Product: Firefox → Core
QA Contact: general → layout.fonts-and-text
Version: 3.0 Branch → unspecified
You need to log in before you can comment on or make changes to this bug.