Bug 44359
| Summary: | MakeTextWritingDirection* leaves extraneous spans | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | HTML Editing | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
@rniwa - Do we have test case for this by any chance or it is still an issue or not? Thanks!
Ryosuke Niwa
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>