Opinion poll!

You have a <button>, it makes a <foo> open. What would be the best declarative attribute for the button to control the foo?

<button clickaction=open
17.1%
<button invokeaction=open
42.1%
<button command=open
26.3%
Other (comment ideas)
14.5%
Poll ended at .

@keithamus With `<button popovertarget="target-id">` and `<foo id="target-id" popover>`, there’s no need for a new attribute.

The use case of your question is too vague for me.

@meduz the point is to replace `popovertarget` with something more generic that can be used for lots of different things, e.g. opening a dialog, playing a video, etc.
@keithamus Okay, got it. Then `invokeaction` seems a good one to me. And if the value can match the HTMLFooElement interface, it’s nice. And if it can allow for shortcuts (`invokeaction="show"` as shortcut for `invokeaction="showModal"`), it’s even nicer.