Update `dashIgnoringElementEquals` so that trailing checks fail if the last characters are not all `-`. Fixes gh-16855