Allow hyphens in tag names in live HTML

Fixes #5642 and should fix #5101.