Description
What is the issue with the HTML Standard?
I'm opening this issue to start the conversation about the interesttarget
attribute/proposal in WHATWG. This is something we've been discussing for some time at OpenUI, and the explainer is located here:
As a quick summary, this proposal (interesttarget
) is very related to #9625 (and related PR), which discusses the invoketarget
attribute and behaviors. The invoketarget
attribute API allows buttons to declaratively invoke other elements such as popovers and dialogs when the button is clicked/activated. The interesttarget
attribute, on the other hand, allows many element types (including buttons, <a>
, and perhaps others) to declaratively invoke other elements when the user merely "shows interest" in those elements. Here, "showing interest" can be done via the mouse by hovering the element, via the keyboard by focusing the element, or via other means depending on the browser and input modality. A typical very common use case is invoking a tooltip when the user shows interest in the element the tooltip explains. Many more details can be found in the explainer.