Ui5FormattedText SetHtml method and htmlText property will filter attributes in html tags. So use setProperty instead of setHtmlText and htmlText to include some attribute you want, such as tabindex.