<?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>48106</bug_id>
          
          <creation_ts>2010-10-21 18:35:47 -0700</creation_ts>
          <short_desc>RTL: text begins with unicode bidi control character without ending pdf ignores the control characters</short_desc>
          <delta_ts>2011-03-29 01:12:31 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>25321</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xiaomei Ji">xji</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
    
    <cc>playmobil</cc>
    
    <cc>rniwa</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>297780</commentid>
    <comment_count>0</comment_count>
    <who name="Xiaomei Ji">xji</who>
    <bug_when>2010-10-21 18:35:47 -0700</bug_when>
    <thetext>The problem happens in both rendering and editing.

Open the above test case,
1. the 1st div has RLE characters but no PDF, and the RLE is ignored by rendering, while FireFox displayed &quot;b!&quot; as RTL.
2. try to type the same in 2nd div as what is in 1st div  (after the fix of 25321, which will preserve RLE in editing), the whole text showed as LTR, while Firefox displayed &quot;b!&quot; as RTL. Changing text direction to RTL when RLE is encountered is the behavior of Mac TextEdit as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298044</commentid>
    <comment_count>1</comment_count>
      <attachid>71572</attachid>
    <who name="Xiaomei Ji">xji</who>
    <bug_when>2010-10-22 10:24:47 -0700</bug_when>
    <thetext>Created attachment 71572
test file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298049</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-10-22 10:34:12 -0700</bug_when>
    <thetext>Note that this happens when the line ends with a run of neutral characters, but not if you replace the ! with a RTL character.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>71572</attachid>
            <date>2010-10-22 10:24:47 -0700</date>
            <delta_ts>2010-10-22 10:24:47 -0700</delta_ts>
            <desc>test file</desc>
            <filename>test_without_pdf.html</filename>
            <type>text/html</type>
            <size>143</size>
            <attacher name="Xiaomei Ji">xji</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8ZGl2IHN0eWxlPSJib3JkZXI6IDJweCBzb2xpZCByZWQ7Ij5hJiN4MjAy
YjtiITwvZGl2Pgo8ZGl2IGNvbnRlbnRlZGl0YWJsZSBzdHlsZT0iYm9yZGVyOiAycHggc29saWQg
cmVkOyI+PC9kaXY+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>