Skip to main content

diff_accessibility

Function diff_accessibility 

Source
pub fn diff_accessibility(
    before: &CompactAccessibilitySnapshot,
    after: &CompactAccessibilitySnapshot,
) -> AccessibilityDiff
Expand description

Compute a diff between two compact accessibility snapshots.

Elements are matched by their revisioned reference. The diff detects:

  • Added: elements only in after.
  • Removed: elements only in before.
  • Changed: elements in both whose name, role, value, checked, selectedOption, empty, readOnly, or required differ.