@@ -2232,7 +2232,7 @@ <h2>Sessions</h2>
2232
2232
Unless stated otherwise it is in the < a > dismiss and notify state</ a > .
2233
2233
2234
2234
< p > A < a > session</ a > has an associated < dfn > browsing context input
2235
- state map</ dfn > , which is a Weak Map with < a > top-level browsing
2235
+ state map</ dfn > , which is a < a > weak map </ a > with < a > top-level browsing
2236
2236
contexts</ a > as keys, and < a > input state</ a > objects as values. This
2237
2237
is initially set to an empty map.
2238
2238
@@ -4266,15 +4266,24 @@ <h2>Elements</h2>
4266
4266
representing a handle to a DOM node in a specific
4267
4267
WebDriver < a > session</ a > .
4268
4268
4269
+ < p > A < dfn > weak map</ dfn > is a < a data-cite =infra > map</ a > in which keys are held
4270
+ weakly i.e. items are removed if the key object is garbaged collected, and
4271
+ presence in the map does not prevent garbage collection. This acts as an
4272
+ alternative to defining properties directly on the key objects.
4273
+
4274
+ < p class =note > Unlike the ECMAScript < a data-lt ="ecmascript type "> WeakMap</ a > ,
4275
+ a < a > weak map</ a > can participate in the full set of operations available for
4276
+ a Map.
4277
+
4269
4278
< p > A WebDriver < a > session</ a > has a < dfn > browsing context group node
4270
- map</ dfn > , which is a weak map between a < a > browsing context group</ a >
4279
+ map</ dfn > , which is a < a > weak map</ a > between a < a > browsing context group</ a >
4271
4280
and a < a > node id map</ a > .
4272
4281
4273
- < p > A < dfn > node id map</ dfn > is weak map between nodes and their
4282
+ < p > A < dfn > node id map</ dfn > is < a > weak map</ a > between nodes and their
4274
4283
corresponding < a > WebDriver node id</ a > .
4275
4284
4276
4285
< p > A WebDriver < a > session</ a > has a < dfn > navigable seen nodes map</ dfn >
4277
- which is a weak map between a [=navigable=] and a set.
4286
+ which is a < a > weak map</ a > between a [=navigable=] and a set.
4278
4287
4279
4288
< p > To < dfn > get a node</ dfn > given < var > session</ var > ,
4280
4289
< var > browsing context</ var > , and < var > reference</ var > :
@@ -4309,7 +4318,7 @@ <h2>Elements</h2>
4309
4318
4310
4319
< li > If < var > browsing context group node map</ var > does not
4311
4320
contain < var > browsing context group</ var > , set < var > browsing context
4312
- group node map</ var > [< var > browsing context group</ var > ] to a new weak map.
4321
+ group node map</ var > [< var > browsing context group</ var > ] to a new < a > weak map</ a > .
4313
4322
4314
4323
< li > Let < var > node id map</ var > be < var > browsing context group node
4315
4324
map</ var > [< var > browsing context group</ var > ].
0 commit comments