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|,
container
"
+ context
"
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|.