Closed Bug 86229 Opened 23 years ago Closed 23 years ago

Changing the dir with javascript does not work.

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: mkaply)

References

Details

(Keywords: regression)

Attachments

(3 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.1+) Gecko/20010615 BuildID: 2001061520 onMouseOver="this.dir='rtl';" does not work as expected. Reproducible: Always Steps to Reproduce: 1. Run code 2. MouseOver the gray box 3. Nothing happends Expected Results: Expected the word "bug" to move to the right. And back when the mouse leaves the box. This works fine in Netscape 6.01 <TABLE BGCOLOR="#dcdccc" WIDTH="300" onMouseOver="this.dir='rtl';" onMouseOut="this.dir='ltr';"> <TR> <TD> Bug </TD> </TR> </TABLE>
You mean Netscape 6.1, right?
No, I mean Netscape 6.01. Works as expected in 6.01. Not working on the nightly builds.
The value does change in the DOM, which means that the correct information is stored in the content model, but we're not correctly showing it, over to layout.
Assignee: jst → karnaze
Component: DOM Other → Layout
QA Contact: gerardok → petersen
Attached file testcase
this should go to BiDi
Assignee: karnaze → mkaply
Status: UNCONFIRMED → NEW
Component: Layout → BiDi Hebrew & Arabic
Ever confirmed: true
QA Contact: petersen → giladehven
Not that I understand this to 100%, but how can this bug be "BiDi Hebrew & Arabic"?? Shouldn't this be display?
Mass-move all BiDi Hebrew and Arabic qa to me, zach@zachlipton.com. Thank you Gilad for your service to this component, and best of luck to you in the future. Sholom.
QA Contact: giladehven → zach
Keywords: regression
Simon, do you have any idea where the code in layout that changes directionality us? I'm not convinced this is a Bidi problem, as dir=rtl should work regardless of language. did we put in any new code to work with this? Mike Kaply IBM
If the direction changes in the DOM but isn't reflected in rendering, this is presumably an invalidation/reflow issue. Playing with the testcase, it seems that the |onMouseOver| works on the <td> but not on the <table>, am I right? cmanske, is this your beat?
Nope, not in my court!
So... if not BiDi Hebrew & Arabic(!??), what then?
This seems to have been fixed, maybe by bug 103266? Marking WORKSFORME after testing today's build on W2K and Linux.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
See this new attachment. Nothing happends. Dont know if it is this bug that is not fixed or if it is bug 103533 causing this.
Attached file new working testcase
Same as testase 58348, but now it works. What i changed was the script. obj.dir = (obj.dir=="Ltr")? "rtl":"ltr"; Now i check for "Ltr" instead of "ltr". Why is it so? Why capital L? Bug?
I guess this one has to be reopened because it is not working as expected. See comment 14.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
According to dbaron in http://bugzilla.mozilla.org/show_bug.cgi?id=10173#c6, this behaviour is perfectly correct according to the DOM standard.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
Blocks: 115713
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: