Skip to main content

Module selection

Module selection 

Source

Structsยง

FlatTreeBoundary ๐Ÿ”’
FlatTreeSelection ๐Ÿ”’
Selection ๐Ÿ”’
https://w3c.github.io/selection-api/#dfn-selection
SelectionLiveRangeNotification ๐Ÿ”’
VisibleSelectionFlagUpdate ๐Ÿ”’
VisibleSelectionTraversal ๐Ÿ”’

Enumsยง

Direction ๐Ÿ”’
FlatTreeNodePosition ๐Ÿ”’
UsedUserSelect ๐Ÿ”’
Used value of user-select: like the computed value but excludes auto.

Constantsยง

_IMPL_DOMOBJECT_FOR_Selection ๐Ÿ”’

Functionsยง

compare_shadow_including_dom_positions ๐Ÿ”’
Compare two shadow-including DOM positions by first projecting them into a shared root and then comparing the two positions. This function assumes that the two positions share a Document.
nodes_have_same_shadow_root ๐Ÿ”’
position_in_flat_tree_for_selection ๐Ÿ”’
Find the position of a node and offset in the flat tree for the purposes of selection boundaries. This projects the given position onto the flat tree, accounting for origin nodes that may not actually be in the flat tree at all.
project_into_shared_tree ๐Ÿ”’
Project the position given by container_a and offset_a into a root that also contains target. If target is not supplied then project the position into the Document root.