[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: khtml component
From:       Ben Blaukopf <bblaukopf () 3glab ! com>
Date:       2001-05-31 15:57:05
[Download RAW message or body]

On Thu, 31 May 2001, Lars Knoll wrote:
> On Thursday 31 May 2001 17:32, Ben Blaukopf wrote:
> > On Thu, 31 May 2001, Simon Hausmann wrote:
> > > On Wed, May 30, 2001 at 02:45:31PM +0100, Ben Blaukopf wrote:
> > > > I've quoted the relevant bit of iterating code below. What I don't get
> > > > is that the code iterates over every node, even when a match has been
> > > > found. Surely the code could break out of the loop as soon as the
> > > > correct child node had been identified?
> > >
> > > I believe such an optimization would break the execution of javascript
> > > on* events under certain circumstances.
> >
> > <snip>
> >
> > But I'm not using Javascript, and neither are a good few other people
> > using konq, judging by the mailing list.
> >
> > Could we have an
> > #ifndef ENABLE_JAVASCRIPT
> > break out of loop early
> > #else
> > do the whole lot
> > #endif
> >
> > or is that getting a bit untidy?
> 
> Please not at compile time. We could easily do that at runtime (you can 
> disable jscript site specific), by asking the corresponding part if jscript 
> is enabled or not. I'm however not sure if it's worth it or could have other 
> side effects.

Sorry, I didn't mean to post that for discussion here. It was meant for
Simon, re Konq/Embedded, where there is already a compile time option for
removing javascript which sets that flag.

Ben Blaukopf

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic