In /*! @drupal/once - v1.0.1 - 2021-06-12 */
The string selector `#a98f0826-a717-4967-8b1c-8528dcd41133`, though a valid DOM ID does not select the element. It returns this error:
Failed to execute 'querySelectorAll' on 'Document': '#6e90d4bb-dd91-4393-9247-1c1209cb2646' is not a valid selector.
1. Create DOM element with ID a98f0826-a717-4967-8b1c-8528dcd4113
2. Try to select it using once('foo', '#a98f0826-a717-4967-8b1c-8528dcd4113')
3. Nothing selected
In contrast the following DOES work:
once('foo', document.getElementById('a98f0826-a717-4967-8b1c-8528dcd41133'));
Active
Code