diff --git a/clickhandler.go b/clickhandler.go index b8a6454..9d17f21 100644 --- a/clickhandler.go +++ b/clickhandler.go @@ -3,6 +3,11 @@ package jaws import "github.com/linkdata/jaws/what" type ClickHandler interface { + // JawsClick is called when an Element's HTML element or something within it + // is clicked in the browser. + // + // The name parameter is taken from the first 'name' HTML attribute or HTML + // 'button' textContent found when traversing the DOM. It may be empty. JawsClick(e *Element, name string) (err error) }