Bug 47710
Summary: | [RTL] ModifyWritingDirectionLeftToRight changes the direction of unselected text | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | HTML Editing | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |