Bug 44359

Summary: MakeTextWritingDirection* leaves extraneous spans
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, mitz, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 43989    
Bug Blocks:    

Ryosuke Niwa
Reported 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>
Attachments
Ahmad Saleem
Comment 1 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!
Ryosuke Niwa
Comment 2 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>
Note You need to log in before you can comment on or make changes to this bug.