Bug 9557 - rangeFromLocationAndLength(..., 0, 0) returns a range outside the body when the body is empty
Summary: rangeFromLocationAndLength(..., 0, 0) returns a range outside the body when t...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-23 13:56 PDT by Justin Garcia
Modified: 2022-12-16 16:39 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Garcia 2006-06-23 13:56:07 PDT
It returns [document, 0] to [document,0].  This causes firstRectForCharacterRange:[0,0] to return a rect outside the body.  See:

editing/input/range-for-empty-document.html
Comment 1 Ahmad Saleem 2022-12-16 16:38:56 PST
Do we still need to track this - we still have this test:
 https://github.com/WebKit/WebKit/blob/689b0ba375c8ad009024dac56d3d7713c6f5b7c6/LayoutTests/editing/mac/input/range-for-empty-document.html