Agreed on changing this to `isLegalInTagName()`.