Bug 47710

Summary: [RTL] ModifyWritingDirectionLeftToRight changes the direction of unselected text
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: mitz, playmobil, xji
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 47424    
Bug Blocks:    

Ryosuke Niwa
Reported 2010-10-14 19:55:57 PDT
See http://trac.webkit.org/browser/trunk/LayoutTests/editing/style/script-tests/make-text-writing-direction-inline.js modifyWritingDirection('<div dir="rtl">هنا <span dir="ltr">يكتب النص العربي</span></div>', selectThirdWord, 'LeftToRight', '<div dir="rtl"><span style="direction: ltr;">هنا يكتب النص العربي</span></div>'); The expected result is wrong. It supposed to be: <div dir="rtl">هنا <span dir="ltr">يكتب النص العربي</span></div> since "النص" is already in the LTR-embedded span.
Attachments
Note You need to log in before you can comment on or make changes to this bug.