fix `best-practice` directive HTML visitor

replaces #22