WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
18123
Position of dynamically inserted content in DIV with contenteditable=true seems to vary randomly
https://bugs.webkit.org/show_bug.cgi?id=18123
Summary
Position of dynamically inserted content in DIV with contenteditable=true see...
Robbie Paplin
Reported
2008-03-26 14:31:38 PDT
What we are attempting to do here is emulate the ability that Internet Explorer has to get the offsetTop & offsetLeft of a TextRange. As you are aware the Range object that Safari & Firefox implement does not have offsetTop & offsetLeft properties. In order to obtain this information, we temporarily insert a SPAN into a Range, calculate the offsetTop & offsetLeft properties of the newly inserted SPAN, and then remove the SPAN from our Range. BTW - If you know of a better way to get the approximate offsetTop & offsetLeft position of range, let us know.
Attachments
Test case to obtain Range's offsetTop & offsetLeft position
(4.80 KB, text/html)
2008-03-26 14:34 PDT
,
Robbie Paplin
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Robbie Paplin
Comment 1
2008-03-26 14:34:17 PDT
Created
attachment 20099
[details]
Test case to obtain Range's offsetTop & offsetLeft position Issue occurs on both Windows & Macintosh platforms
Vicki Murley
Comment 2
2008-03-27 10:16:52 PDT
<
rdar://problem/5825391
>
Robert Blaut
Comment 3
2008-07-30 02:38:19 PDT
Confirmed issue in the latest WebKit
r35417
for Mac OS X.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug