Bug 94850

Summary: Inserting node before a text node that has first-letter rule doesn't work
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: dbates, esprehn, inferno, kenrb, rakuco, shinyak
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Demonstrates the bug none

Description Ryosuke Niwa 2012-08-23 14:16:31 PDT
Created attachment 160240 [details]
Demonstrates the bug

Open the attached document.

Expected result:
You see "hello world" repeated twice

Actual result:
"hello world

whello orld"

The first line works because we're modifying the node before its renderer is created. The second line doesn't work because we're doing it in setTimeout(~, 0) and hence the text node has its renderer.

http://crbug.com/125199
Comment 1 Abhishek Arya 2012-08-23 14:36:09 PDT
Daniel, this is same bug i was just discussing over chat. We are not destroying old-first-text renderer. let me put all of my views in the other main first-letter bug.
Comment 2 Raphael Kubo da Costa (:rakuco) 2013-05-16 07:47:02 PDT

*** This bug has been marked as a duplicate of bug 15602 ***