[webkit-dev] Editable selection inside empty element
Frederico Caldeira Knabben
fredck at fckeditor.net
Sat Sep 22 03:11:27 PDT 2007
Thanks for the reply Mark. I've filled the following bug for it:
http://bugs.webkit.org/show_bug.cgi?id=15256
> On an unrelated note,
> // For Safari and Opera, we must ensure the focus.
> if ( (/safari/i).test( navigator.userAgent ) )
>
> It is almost never correct to test for "Safari" specifically. WebKit is
> what you should be aiming to detect. This will ensure that your code
> functions correctly in other WebKit-based browsers, such as OmniWeb,
> Shiira, NetNewsWire, etc.
That was just useful for the TC. But you are right; I'll take care of using
the recommended way:
(/ AppleWebKit\//).test( navigator.userAgent )
Thanks again!
Fred
Frederico Caldeira Knabben
Project Manager, FCKeditor
----
http://www.fckeditor.net
________________________________________
From: Mark Rowe [mailto:bdash at webkit.org]
Sent: 21 September 2007 21:59
To: Frederico Caldeira Knabben
Cc: webkit-dev at lists.webkit.org
Subject: Re: [webkit-dev] Editable selection inside empty element
On 21/09/2007, at 21:53, Frederico Caldeira Knabben wrote:
For the few big issues we are having with Safari, I'm going almost crazy,
trying to find a way to place the caret inside an empty element for editing.
To understand the problem, just try the following page:
http://www.fredck.com/bugs/safari/collapsed_select_test.html
This page works well with Firefox 2 and Opera 9.5 (minor issues with this
one).
Before opening a bug report for it, I'm coming to the mailing list for a
desperate call for help.
Please do file a bug report on this at http://bugs.webkit.org/. I'm not an
expert on editing support by any means, but the behaviour you are expecting
to see from the test case sounds correct.
On an unrelated note,
// For Safari and Opera, we must ensure the focus.
if ( (/safari/i).test( navigator.userAgent ) )
It is almost never correct to test for "Safari" specifically. WebKit is
what you should be aiming to detect. This will ensure that your code
functions correctly in other WebKit-based browsers, such as OmniWeb, Shiira,
NetNewsWire, etc.
Kind regards,
Mark Rowe
More information about the webkit-dev
mailing list