Bug 44359 - MakeTextWritingDirection* leaves extraneous spans
Summary: MakeTextWritingDirection* leaves extraneous spans
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 43989
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-20 14:40 PDT by Ryosuke Niwa
Modified: 2022-12-17 22:04 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2010-08-20 14:40:24 PDT
MakeTextWritingDirectionLeftToRight on <span dir="rtl">hello <span dir="ltr">world webkit rocks</span></span>

Expected result:
<span dir="rtl">hello <span dir="ltr">world</span></span><span style="unicode-bidi: embed;"> webkit</span><span dir="rtl"><span dir="ltr"> rocks</span></span>

Actual result:
<span dir="rtl">hello <span dir="ltr">world</span></span><span><span><span style="unicode-bidi: embed;"> webkit</span></span></span><span dir="rtl"><span dir="ltr"> rocks</span></span>
Comment 1 Ahmad Saleem 2022-12-17 17:18:12 PST
@rniwa - Do we have test case for this by any chance or it is still an issue or not? Thanks!
Comment 2 Ryosuke Niwa 2022-12-17 22:04:02 PST
The test case is in the description. You need to run testRunner.execCommand('MakeTextWritingDirectionLeftToRight') on <span dir="rtl">hello <span dir="ltr">world webkit rocks</span></span>