a testcase for a new khtml problem

Allan Sandfeld Jensen kde at carewolf.com
Thu Apr 28 21:00:06 BST 2005


On Wednesday 27 April 2005 16:45, Luciano Montanaro wrote:
> El Miércoles 27 Abril 2005 16:37, Allan Sandfeld Jensen escribió:
> > On Wednesday 27 April 2005 15:58, Leo Savernik wrote:
> > > No, this is clearly a bug. It should only return hidden in cases like
> > >
> > > if (document.all)
> > >
> > > but not on implicitly dereferencing it
> > >
> > > document.all["blah"]
> > >
> > > Allen, you coded that one IIRC. Can you comment on that?
> >
> > The problem seems to be here in nodes.cpp. In order to giver better
> > error-messages it tries to check the type early, but since the type is
> > spoofed it fails. If you compile without debugging it should work ;)
>
> I was thinking the same too. Unfortunately, that's not enough.
> Commenting the code out, the  KJS::Reference::getvalue() fails instead,
> (as I said in the previous message - I have been skipping the
> evaluateReference passage)
> because the
>
> if (o.type() != ObjectType) test triggers.
>
Hmm. Maybe overloading the type wasn't the best idea. The alternative is some 
other way to make document.all==null return true.

`Allan




More information about the kfm-devel mailing list