Optimize attribute prefix check

When converting kebab-case to camelCase for element attributes, we leave data-*
and aria-* attributes untouched.

Instead of constructing PersistentHashSet each time we check this, use a `case`
to test prefix imperatively.