Skip to content

Commit

Permalink
Merge pull request #6 from lukewarlow/area
Browse files Browse the repository at this point in the history
add `<area>` to list of interesttarget supporting elements
  • Loading branch information
keithamus authored Sep 19, 2023
2 parents 05d0ae0 + f6e83de commit 174763d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ touched, or enacted via keypress - dispatch an `InvokeEvent` on the element
referenced by `invokertarget`, with some default behaviours.

In addition, adding an `interesttarget` attribute to `<button>`, `<a>`,
`<input>` elements would allow disclosure of high fidelity tooltips in a more
`<area>`, `<input>` elements would allow disclosure of high fidelity tooltips in a more
accessible and declaritive way. Elements with `interesttarget` will - when
hovered, long pressed, or focussed - dispatch an `InterestEvent` on the element
referenced by `interesttarget`, with some default behaviours.
Expand Down Expand Up @@ -86,7 +86,7 @@ the balance.
In the style of `popovertarget`, this document proposes we add `invokertarget`,
and `invokeraction` as available attributes to `<button>`,
`<input type="button">` and `<input type="reset">` elements, as well as an
`interesttarget` attribute to `<button>`, `<a>`, and `<input>` elements.
`interesttarget` attribute to `<button>`, `<a>`, `<area>` and `<input>` elements.

```webidl
interface mixin InvokerElement {
Expand Down
1 change: 1 addition & 0 deletions invoker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ declare global {
interface HTMLButtonElement extends InvokerMixin, InterestMixin {}
interface HTMLInputElement extends InvokerMixin, InterestMixin {}
interface HTMLAnchorElement extends InterestMixin {}
interface HTMLAreaElement extends InterestMixin {}
interface HTMLSummaryElement extends InterestMixin {}
/* eslint-enable @typescript-eslint/no-empty-interface */
interface Window {
Expand Down

0 comments on commit 174763d

Please sign in to comment.