[webkit-dev] programmatic text selection

Mike Emmel mike.emmel at gmail.com
Fri May 26 14:08:10 PDT 2006

Finally found some benchmarks form what I can tell Firefox is
significantly faster on scripts
then Safari


It does look like the khtml engine itself is quite fast so the
combination of SpiderMonkey with
WebCore should make a very fast browser.

Again please prove that KJS is faster then SpiderMonkey everything I
finds shows not only is this not true but it is significantly slower.
I see no reason that the proposal to integrate SpiderMonkey slim it
down and do a little performance tunning is not valid and resonable
approach. I see no reason to start from scratch on a new interpeter.

Finally I think this benchmark should be run agianst webkit/IE/Firefox
and the results should be on the website it would be helpful. It took
me a while to find a page with a reasonable set of results.


On 5/26/06, Giacomo Luca Maioli <luca at tricheco.net> wrote:
> > On 5/26/06, Giacomo Luca Maioli <luca at tricheco.net> wrote:
> >>  >> But Safari throws an error while processing the last method (the
> >> one which actually highlight text), so you should try:
> >>
> >>  >> window.getSelection().setBaseAndExtent(selDiv, 0, selDiv, 1);
> >>
> >> So you'll only need to play around with this (strange and mostly
> >> unknown) method.
> >
> > I'm afraid Safari doesn't appear to support setBaseAndExtent() method
> > on a selection, either.
> >
> I just tested the code on both Firefox and Safari. You can find a
> working example here:
> http://www.tricheco.net/selection.html
> I'm using Safari Version 2.0.3 (417.9.3) and Firefox on Mac
> and Windows.
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at opendarwin.org
> http://www.opendarwin.org/mailman/listinfo/webkit-dev

More information about the webkit-dev mailing list