RESOLVED DUPLICATE of bug 112329 115027
Missing class attribute after pressing backspace
https://bugs.webkit.org/show_bug.cgi?id=115027
Summary Missing class attribute after pressing backspace
Krzysztof Wolanski
Reported 2013-04-23 02:45:58 PDT
Steps to Reproduce: 1)Open the website that contains (ScreenShot1.jpg): <DIV>text1</DIV> <DIV><SPAN style="color:#FF0000" class="tz-blink">text2</SPAN></DIV> 2) Press backspace in front of "text2". Actual Results: Style of "text2" is lost (ScreenShot2.jpg): <DIV>text1<SPAN style="color:#FF0000">text2</SPAN></DIV> Expected Results: All style should be remained: <DIV>text1<SPAN style="color:#FF0000" class="tz-blink">text2</SPAN></DIV> Build Date & Platform: Build 2013-04-22 on Ubuntu 12.04 LTS
Attachments
Screen shot before pressing backspace (63.64 KB, image/jpeg)
2013-04-23 02:46 PDT, Krzysztof Wolanski
no flags
Screen shot after pressing backspace (58.08 KB, image/jpeg)
2013-04-23 02:47 PDT, Krzysztof Wolanski
no flags
HTML page, shows unexpected behavior (226 bytes, text/html)
2013-04-23 02:47 PDT, Krzysztof Wolanski
no flags
HTML page - style isn't copied while paragraph merge (224 bytes, text/html)
2013-04-24 00:23 PDT, Grzegorz Czajkowski
no flags
Screen shot before pressing backspace (18.95 KB, image/png)
2013-04-24 00:24 PDT, Grzegorz Czajkowski
no flags
Screen shot after pressing backspace (19.01 KB, image/png)
2013-04-24 00:26 PDT, Grzegorz Czajkowski
no flags
HTML page - style isn't copied while paragraph merge (285 bytes, text/html)
2013-04-24 06:27 PDT, Grzegorz Czajkowski
no flags
Krzysztof Wolanski
Comment 1 2013-04-23 02:46:55 PDT
Created attachment 199206 [details] Screen shot before pressing backspace
Krzysztof Wolanski
Comment 2 2013-04-23 02:47:16 PDT
Created attachment 199207 [details] Screen shot after pressing backspace
Krzysztof Wolanski
Comment 3 2013-04-23 02:47:45 PDT
Created attachment 199208 [details] HTML page, shows unexpected behavior
Grzegorz Czajkowski
Comment 4 2013-04-24 00:18:54 PDT
Comment on attachment 199206 [details] Screen shot before pressing backspace You've forgotten to attach the style to html sample which causes the issue. I'll submit fixed html page with screenshot.
Grzegorz Czajkowski
Comment 5 2013-04-24 00:19:47 PDT
Comment on attachment 199207 [details] Screen shot after pressing backspace Ditto.
Grzegorz Czajkowski
Comment 6 2013-04-24 00:20:07 PDT
Comment on attachment 199208 [details] HTML page, shows unexpected behavior Ditto.
Grzegorz Czajkowski
Comment 7 2013-04-24 00:23:15 PDT
Created attachment 199395 [details] HTML page - style isn't copied while paragraph merge
Ryosuke Niwa
Comment 8 2013-04-24 00:23:54 PDT
This is a feature/behavior we don't support.
Grzegorz Czajkowski
Comment 9 2013-04-24 00:24:56 PDT
Created attachment 199396 [details] Screen shot before pressing backspace
Grzegorz Czajkowski
Comment 10 2013-04-24 00:26:34 PDT
Created attachment 199397 [details] Screen shot after pressing backspace
Andreas Kling
Comment 11 2013-04-24 05:53:59 PDT
(In reply to comment #8) > This is a feature/behavior we don't support. Should we support it though? It works in Gecko.
Grzegorz Czajkowski
Comment 12 2013-04-24 06:27:44 PDT
Created attachment 199421 [details] HTML page - style isn't copied while paragraph merge Simplified the HTML sample a bit by removing unnecessary divs. Steps to reproduce: - Press Backspace in the front of text2 Result: - the style of <SPAN> is not copied This issue occurs when we have <span> tag alone: <SPAN class="addBackground">text2</SPAN> <--- the background is not being added <SPAN class="addBackground">text2</SPAN> text3 <--- the background is properly added
Ryosuke Niwa
Comment 13 2013-04-24 10:46:07 PDT
(In reply to comment #11) > (In reply to comment #8) > > This is a feature/behavior we don't support. > > Should we support it though? It works in Gecko. No, it's impossible to support this feature in most general cases. (In reply to comment #12) > Created an attachment (id=199421) [details] > HTML page - style isn't copied while paragraph merge This is a separate bug: https://bugs.webkit.org/show_bug.cgi?id=112329
Grzegorz Czajkowski
Comment 14 2013-04-25 02:44:03 PDT
*** This bug has been marked as a duplicate of bug 112329 ***
Note You need to log in before you can comment on or make changes to this bug.