Don't draw annotation text outside of painter's clip region (fix #10400)
Allow choice of files with non .html extension for HTML annotation