<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>94850</bug_id>
          
          <creation_ts>2012-08-23 14:16:31 -0700</creation_ts>
          <short_desc>Inserting node before a text node that has first-letter rule doesn&apos;t work</short_desc>
          <delta_ts>2013-05-16 07:47:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15602</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dbates</cc>
    
    <cc>esprehn</cc>
    
    <cc>inferno</cc>
    
    <cc>kenrb</cc>
    
    <cc>rakuco</cc>
    
    <cc>shinyak</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>703351</commentid>
    <comment_count>0</comment_count>
      <attachid>160240</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-08-23 14:16:31 -0700</bug_when>
    <thetext>Created attachment 160240
Demonstrates the bug

Open the attached document.

Expected result:
You see &quot;hello world&quot; repeated twice

Actual result:
&quot;hello world

whello orld&quot;

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

http://crbug.com/125199</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>703385</commentid>
    <comment_count>1</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2012-08-23 14:36:09 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>889819</commentid>
    <comment_count>2</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2013-05-16 07:47:02 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 15602 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>160240</attachid>
            <date>2012-08-23 14:16:31 -0700</date>
            <delta_ts>2012-08-23 14:16:31 -0700</delta_ts>
            <desc>Demonstrates the bug</desc>
            <filename>testissue.html</filename>
            <type>text/html</type>
            <size>435</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4N
CnA6Zmlyc3QtbGV0dGVyIHsgdGV4dC1kZWNvcmF0aW9uOnVuZGVybGluZTsgfQ0KPC9zdHlsZT4N
CjwvaGVhZD4NCjxib2R5Pg0KPHAgaWQ9ImkiPndvcmxkPC9wPg0KPHAgaWQ9ImoiPndvcmxkPC9w
Pg0KPHNjcmlwdD4NCg0KZnVuY3Rpb24gbW9kaWZ5KGlkKSB7DQogICAgdmFyIGVsZW1lbnQgPSBk
b2N1bWVudC5nZXRFbGVtZW50QnlJZChpZCk7DQogICAgZWxlbWVudC5pbnNlcnRCZWZvcmUoZG9j
dW1lbnQuY3JlYXRlVGV4dE5vZGUoJ2hlbGxvICcpLCBlbGVtZW50LmZpcnN0Q2hpbGQpOw0KfQ0K
DQptb2RpZnkoJ2knKTsNCnNldFRpbWVvdXQoZnVuY3Rpb24gKCkgeyBtb2RpZnkoJ2onKTsgfSwg
MCk7DQoNCjwvc2NyaXB0Pg0KPC9ib2R5Pg0KPC9odG1sPg0K
</data>

          </attachment>
      

    </bug>

</bugzilla>