Skip to content

Commit 0e0a514

Browse files
committed
Added clarity in selector paths
- Code review
1 parent 686f052 commit 0e0a514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/selectors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Example:
216216
//div[@class=’form-group’]//input[@id='user-message']
217217
```
218218
219-
In the GOOD example above, all <div class='form-group'/> elements in the DOM are matched first, and then all <input id='user-message'/> with <div class='form-group'/> as one of its parents is matched. Doesn't matter if the parent is anywhere up in the parent hierarchy.
219+
In the `GOOD` example above, all `<div class='form-group'/>` elements in the DOM are matched first, and then all `<input id='user-message'/>` with `<div class='form-group'/>` as one of its parents is matched. The parent does not have to immediately precede it since it uses another double forward slash `//`.
220220
221221
#### Parent Selectors
222222

0 commit comments

Comments
 (0)