Skip to main content

Module subtree_filter

Module subtree_filter 

Source
Expand description

Hashes for the DOM-maintained filter of local names, classes and null-namespace attribute names in an element’s DOM subtree, including itself. Shadow-tree contents are not included. This is separate from the ancestor bloom and the wider, lazily constructed RelativeSelectorFilterMap.

Required hashes can be OR’d together: (filter & hashes) == hashes means that a match remains possible. Zero never rejects. Removed names may leave stale bits, so a hit cannot prove that a selector matches.

Constants§

BLOOM_BITS 🔒

Functions§

hash_for_subtree_filter
Turn a 32-bit atom hash into the bits it occupies in the subtree filter (k = 2 hash functions).