Bug 94850 - Inserting node before a text node that has first-letter rule doesn't work
Summary: Inserting node before a text node that has first-letter rule doesn't work
Status: RESOLVED DUPLICATE of bug 15602
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2012-08-23 14:16 PDT by Ryosuke Niwa
Modified: 2013-05-16 07:47 PDT (History)
6 users (show)

See Also:


Attachments
Demonstrates the bug (435 bytes, text/html)
2012-08-23 14:16 PDT, 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 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 ***