[htmlmixed mode] Fix bug in intra-token-closetag detection

Issue #1943
[show-hint addon] Fix event delegation for UL/LI

It's possible to provide custom markup for hint elements that are LI
tags and that breaks event delegation logic that expects UL to have
text-only LI nodes. As a result if you have elements inside LI and
click/dblclick on those, nothing happens and selected hint is not
applied. The fix improves event delegation in the way to find nearest
parent element to event target that is a hint element at the same time.
[show-hint addon] Style fixes

Issue #1947