Add attributes to selectors that are not accessible

It would be great to be able to add attributes to selectors that are not accessible within the canvas. Sometimes, I find myself wanting to add attributes to selectors that are not within the canvas, such as a form to which I want to add an attribute.
I understand that this can be achieved with JavaScript, but I suppose this would be simpler…

Image for illustrative purposes only, surely not the best way to do this.

image

I think you can change the attributes of any element via css selector if you use the ‘interactions’ interface. Just yesterday I set up a scrolling section to change a data-status attribute on a different element.

Might be helpful!