A list of supported CSS selectors when invoking g (..)
At it's most basic, gimme is a utility for retrieving lots of Elements
Quickly and then acting upon all of them at once. This is done through
A call to the G (...) function.
The G (...) function takes one
Parameter: A string formatted like a CSS selector which indicates which
Elements you want gimme to retrieve for you.
The following is a list of currently support CSS selectors (more to come );
* (Univeral selector) Matches any element
E Matches NY e element (e.g. An element of Type E)
E F Matches any F element that is a descendant of an E Element
E> F Matches any F element that is a direct child of an E Element
E + F Matches any F element immediately preceded by an e Element
E ~ F Matches any F element that is a following sibling of an E Element
E [Foo] Matches any E element that has the attribute Foo (regardless of its value)
E [Foo = "warning"] Matches any E element whose Foo attribute is exactly "warning"
E [Foo ^ = "war"] Matches any E element whose Foo attribute starts with "war"
E [Foo $ = "ing"] Matches any E element whose Foo attribute ends with "ing"
E [Lang | = "en"] Matches any E element whose lang attribute has a hyphen-separated list of values beginning (from the left) with "EN"
E. Warning Matches any E element that has the class "warning" applied to it
E. Warning. Severe Matches any E element that has both classes "warning" and "severe" applied to it
# ID Matches any element whose ID attribute is exactly ID
E # ID Matches any E element whose ID attribute is exactly ID
E: First-child Matches an e element, first child of its parent
E: Last-child Matches an e element, last child of its parent
E: Nth-child (N) An E element, the n-th child of its parent
Todo:
- E [ATTR | Val]
- E: Enabled
- E: Disabled
- E: checked
- E: Target
- E: Not
- E: Root
- E: empty