Bug 176049

Summary: Styled link in contenteditable loses style when new text is append at the end of link
Product: WebKit Reporter: m.samsel
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, m.lewandowski, rniwa, webkit-bug-importer, wenson_hsieh, zalan
Priority: P2 Keywords: InRadar
Version: Safari 10   
Hardware: Unspecified   
OS: Unspecified   

m.samsel
Reported 2017-08-29 01:19:31 PDT
Link to test case: https://codepen.io/mlewand/pen/brmoLr Steps to reproduce: 1. Open link mentioned before. 2. Put caret at the end of red link. 3. Start to type text. Expected result: - Text will append as a link and preserve its style. Actual Result: - Typed text is not a link, but it get red style. Unfortunately reddish style is removed from link. Browser: Version 10.1.2 (12603.3.8) OS: MacOS 10.12.6
Attachments
Radar WebKit Bug Importer
Comment 1 2017-08-29 07:36:14 PDT
Ahmad Saleem
Comment 2 2022-09-24 10:06:56 PDT
I am able to reproduce this in Safari 16 and Safari Technology Preview 154 and get "Actual Results" while in other browsers, I don't get this behavior. Thanks!
Note You need to log in before you can comment on or make changes to this bug.