L
Lasse Reichstein Nielsen
Thomas 'PointedEars' Lahn said:Because you cannot rely on what iteration shows, is there a way to get
all properties of an object other than brute force, and if that, how it
is done?
No. You can only get the enumerable properties. For the rest, you must
do a brute force search (i.e., you can't in practice).
In Opera, only methods are generally enumerable, and not even all of
them. The enumerable properties of O7's location object are:
assign, reload, replace, toString, and valueOf
As you say, in O6, there are no enumerable properties.
I don't have Opera 3 installed,
See [1].
I have it, it's just not installed right now
It also says:
| The location object is contained by the window object and is within its
| scope. If you refer to a location object without specifying a window, the
| location object represents the current location. If you refer to a
| location object and specify a window name, as in windowReference.location,
| the location object represents the location of the specified window.
That just sounds like normal scope rules when the "current" window object
is also the global object of the execution context. Location objects are
just properties of window objects.
and BTW, your `x' is not a Location object.
Nope. But they did say that if you assigned to the location property
of an object, it would create a location object in its place. Apparenty
it is only true for window objects.
/L