ai11y docs
    Preparing search index...

    Function getMarkers

    • Scans the DOM for elements with data-ai-* attributes and returns markers

      Parameters

      • Optionalroot: Element

        Optional DOM root element to scan (defaults to document.body)

      Returns Marker[]

      Array of Marker objects found in the DOM

      const markers = getMarkers();
      // Scans document.body for data-ai-* attributes