Subj : Re: Rhino E4X bug or feature? To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed Jul 20 2005 08:49 pm Olinda Spider wrote: > XML prototype functions are not found when executed in a with block, > the following code reproduces the issue. Is the a bug or a feature? > > xml = c > b1 = xml.child('b') // this works > with (xml) { > b2 = child('b') // this does not work > } I don't think it is a bug, it is a "feature" introduced by making XML objects special and having their children and attributes made their script properties. To achieve that method lookup on XML objects is special. -- Martin Honnen http://JavaScript.FAQTs.com/ .