Seems strange to me since the spec says the following:
Represents an element with the att attribute, its value either being exactly "val" or beginning with "val" immediately followed by "-" (U+002D).
it should match text-foo or text but not textFoo
Represents an element with the att attribute, its value either being exactly "val" or beginning with "val" immediately followed by "-" (U+002D).
it should match text-foo or text but not textFoo