From 7739ca4d9d3c723998fa0c131c723902ed34f184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Tue, 31 Aug 2021 18:13:23 -0700 Subject: [PATCH] add || --- QUERY-SPEC.md | 1 + 1 file changed, 1 insertion(+) diff --git a/QUERY-SPEC.md b/QUERY-SPEC.md index 9ac4a33..84b8d0c 100644 --- a/QUERY-SPEC.md +++ b/QUERY-SPEC.md @@ -6,6 +6,7 @@ This is loosely based on CSS selectors, but without the web-specific stuff. * `a > b`: Selects any `b` element that is a direct child of an `a` element. * `a b`: Selects any `b` element that is a _descendant_ of an `a` element. +* `a b || a c`: Selects all `b` and `c` elements that are descendants of an `a` element. Any selector may be on either side of the `||`. Multiple `||` are supported. * `a + b`: Selects any `b` element that is placed immediately after a sibling `a` element. * `a ~ b`: Selects any `b` element that follows an `a` element as a sibling, either immediately or later. * `[accessor()]`: Selects any element, filtered by [an accessor](#accessors). (`accessor()` is a placeholder, not an actual accessor)