Bug 112318 - WebKit can strip lang attribute when deleting a line break and change font
Summary: WebKit can strip lang attribute when deleting a line break and change font
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-03-13 20:38 PDT by Ryosuke Niwa
Modified: 2022-12-16 17:22 PST (History)
5 users (show)

See Also:


Attachments
Demo (614 bytes, text/html)
2013-03-13 20:38 PDT, Ryosuke Niwa
no flags Details
Demo for Chinese/Japanese (780 bytes, text/html)
2013-03-14 14:47 PDT, Ryosuke Niwa
no flags Details
Demo for Chinese/Japanese (774 bytes, text/html)
2022-12-16 17:21 PST, Ryosuke Niwa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-03-13 20:38:16 PDT
Apparently lang="en-us" can affect the way font-fallback works and cause the appearance of text to change.

Reproduction steps:
1. Open the attached email (which appears to be composed by Microsoft Outlook/Outlook Express)
2. Delete the line break before second to the last line.

Expected result:
The blank line is removed and the all text maintains the same appearance.

Actual result:
The blank line is removed but the line before which the line break was removed changes its appearance.
Comment 1 Ryosuke Niwa 2013-03-13 20:38:57 PDT
Created attachment 193056 [details]
Demo
Comment 2 Ryosuke Niwa 2013-03-14 14:47:58 PDT
Created attachment 193189 [details]
Demo for Chinese/Japanese

This bug is particularly bad when Chinese and Japanese are mixed because unicode uses the same code point for multiple characters that are considered distinctively different in those two languages.
Comment 3 Radar WebKit Bug Importer 2013-03-14 14:48:40 PDT
<rdar://problem/13424492>
Comment 4 Ahmad Saleem 2022-12-16 17:04:22 PST
@rniwa - It seems that this is not longer reproducible. I am not able to reproduce this bug using Demo for Chinese / Japanese, Safari Technology Preview 160 does not change the font and also matches similar to Chrome Canary 110 and Firefox Nightly 110.

Let me know if I am doing something wrong. Thanks!
Comment 5 Ryosuke Niwa 2022-12-16 17:21:44 PST
Created attachment 464081 [details]
Demo for Chinese/Japanese
Comment 6 Ryosuke Niwa 2022-12-16 17:22:07 PST
This bug still reproduces in Japanese/Chinese