<?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>13883</bug_id>
          
          <creation_ts>2007-05-26 09:08:59 -0700</creation_ts>
          <short_desc>-[WebHTMLView attributedSubstringFromRange:] returns a string of incorrect length</short_desc>
          <delta_ts>2007-05-28 14:47:18 -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>Text</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>evan</cc>
    
    <cc>justin.garcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8979</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-05-26 09:08:59 -0700</bug_when>
    <thetext>When asked for a substring of a contenteditable div, WebKit appends &quot;\n&quot; to it, thus returning a string of incorrect length; see the attached test case.

I&apos;m not sure if this is a regression, but it may well be. Evan, do you by chance have a simple way to check that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8980</commentid>
    <comment_count>1</comment_count>
      <attachid>14736</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-05-26 09:09:26 -0700</bug_when>
    <thetext>Created attachment 14736
test case (DRT-only)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14736</attachid>
            <date>2007-05-26 09:09:26 -0700</date>
            <delta_ts>2007-05-26 09:09:26 -0700</delta_ts>
            <desc>test case (DRT-only)</desc>
            <filename>attributed-substring.html</filename>
            <type>text/html</type>
            <size>587</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGJvZHk+CjxkaXYgaWQ9dGVzdCBjb250ZW50ZWRpdGFibGU+Y29udGVudGVkaXRhYmxlPC9kaXY+
CjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4KCglpZiAod2luZG93LmxheW91dFRlc3RD
b250cm9sbGVyKSB7CgkJCgkJdHJ5IHsKCQkKCQkJbGF5b3V0VGVzdENvbnRyb2xsZXIuZHVtcEFz
VGV4dCgpOwoJCQoJCQl3aW5kb3cuZ2V0U2VsZWN0aW9uKCkuc2V0UG9zaXRpb24oZG9jdW1lbnQu
Z2V0RWxlbWVudEJ5SWQoInRlc3QiKSwgMCk7CiAgICAgICAgICAgIHZhciByZXN1bHQgPSB0ZXh0
SW5wdXRDb250cm9sbGVyLmF0dHJpYnV0ZWRTdWJzdHJpbmdGcm9tUmFuZ2UoMCwgNyk7CiAgICAg
ICAgICAgIGRvY3VtZW50LndyaXRlKHJlc3VsdC5sZW5ndGgoKSA9PSA3ID8gIlNVQ0NFU1MiIDog
IkZBSUxVUkU6IGxlbmd0aCA9PSAiICsgcmVzdWx0Lmxlbmd0aCgpKTsKCgkJfSBjYXRjaCAoZXgp
IHsKCQkJYWxlcnQoIkV4Y2VwdGlvbjogIiArIGV4LmRlc2NyaXB0aW9uKTsKCQl9CgkJCgl9IGVs
c2UgewoJCWRvY3VtZW50LndyaXRlKCIoY2Fubm90IHJ1biBpbnRlcmFjdGl2ZWx5KSIpOwoJfQo8
L3NjcmlwdD4KPC9ib2R5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>