diff --git a/index.bs b/index.bs index 4d36974b..609b6366 100644 --- a/index.bs +++ b/index.bs @@ -2967,7 +2967,7 @@ To await a navigation given |navigable|, |request|, |wait condition|, browsingContext.Locator = ( browsingContext.AccessibilityLocator / browsingContext.CssLocator / - browsingContext.ContainerLocator / + browsingContext.ContextLocator / browsingContext.InnerTextLocator / browsingContext.XPathLocator ) @@ -2985,8 +2985,8 @@ browsingContext.CssLocator = { value: text } -browsingContext.ContainerLocator = { - type: "container", +browsingContext.ContextLocator = { + type: "context", value: { context: text, } @@ -3792,7 +3792,7 @@ To locate nodes using CSS with given |navigable|, |context nodes|,
-To locate the container element with given |navigable|: +To locate the container element given |navigable|: 1. Let |returned nodes| be an empty [=/list=]. @@ -4070,7 +4070,7 @@ The [=remote end steps=] with |session| and |command parameters| are: 1. Let |result nodes| be [=locate nodes using accessibility attributes=] given |context nodes|, |selector|, and |maximum returned node count|. -
|type| is the string "container" +
|type| is the string "context"
1. If |start nodes parameter| is not null, @@ -4078,10 +4078,17 @@ The [=remote end steps=] with |session| and |command parameters| are: 1. Let |selector| be |locator|["value"]. - 1. Let |child navigable| be |selector|["context"]. + 1. Let |context id| be |selector|["context"]. + + 1. Let |child navigable| be the result of [=trying=] to [=get a navigable=] with |context id|. + + 1. If |child navigable|'s [=navigable/parent=] is not |navigable|, + return [=error=] with [=error code=] "invalid argument". 1. Let |result nodes| be [=locate the container element=] given |child navigable|. + 1. Assert: For each |node| in |result nodes|, |node|'s [=/node navigable=] is |navigable|. + 1. Assert: |maximum returned node count| is null or [=list/size=] of |result nodes| is less than or equal to |maximum returned node count|.