Expand description
Generic implementations of some DOM APIs so they can be shared between Servo and Gecko.
Structsยง
- Query
All - A query for all the elements in a subtree.
- Query
First - A query for the first in-tree match of all the elements in a subtree.
- Query
Selector ๐Processor
Enumsยง
- MayUse
Invalidation - Whether the invalidation machinery should be used for this query.
- Simple
Filter ๐
Traitsยง
- Selector
Query - A selector query abstraction, in order to be generic over QuerySelector and QuerySelectorAll.
Functionsยง
- collect_
all_ ๐elements - collect_
elements_ ๐with_ id - Collects elements with a given id under
root
, that passfilter
. - connected_
element_ ๐is_ descendant_ of - Returns whether a given element connected to
root
is descendant ofroot
. - element_
closest - https://dom.spec.whatwg.org/#dom-element-closest
- element_
matches - https://dom.spec.whatwg.org/#dom-element-matches
- fast_
connected_ ๐elements_ with_ id - Fast path for iterating over every element with a given id in the document
or shadow root that
root
is connected to. - get_
attr_ ๐name - get_id ๐
- has_
attr ๐ - local_
name_ ๐matches - query_
selector - https://dom.spec.whatwg.org/#dom-parentnode-queryselector
- query_
selector_ ๐fast - Fast paths for a given selector query.
- query_
selector_ ๐single_ query - Fast paths for querySelector with a single simple selector.
- query_
selector_ ๐slow
Type Aliasesยง
- Query
Selector AllResult - The result of a querySelectorAll call.