Bug 13883 - -[WebHTMLView attributedSubstringFromRange:] returns a string of incorrect length
Summary: -[WebHTMLView attributedSubstringFromRange:] returns a string of incorrect le...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-26 09:08 PDT by Alexey Proskuryakov
Modified: 2007-05-28 14:47 PDT (History)
2 users (show)

See Also:


Attachments
test case (DRT-only) (587 bytes, text/html)
2007-05-26 09:09 PDT, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2007-05-26 09:08:59 PDT
When asked for a substring of a contenteditable div, WebKit appends "\n" to it, thus returning a string of incorrect length; see the attached test case.

I'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?
Comment 1 Alexey Proskuryakov 2007-05-26 09:09:26 PDT
Created attachment 14736 [details]
test case (DRT-only)