implement GetCaption and SetCaption for HTMLTableElement

Fixes #3052