What you are looking for. E.g. "[data-precisionIssues]"
The expected type of the items. E.g. SVGTextElement
The minimum number of items allowed. Defaults to 1.
The maximum number of items allowed. Defaults to Infinity.
An array containing all of the objects that matches the selector.
This is a wrapper around
document.querySelectorAll(). This is analogous togetById().This includes a lot of assertions. These have good error messages aimed at a developer. The assumption is that you will run this very early in the main program and store the results in a constant. If there is a problem we want to catch it ASAP.
You can set the min and max number of elements. That's another thing that's good to check early. The default range is 1 - Infinity. Set
minto 0 to completely disable this test.