[css-selectors][css-syntax] HTML5 Attribute names in CSS?

In HTML5, attribute names like <div data-x{32}=”17” data-a.b=”21”> are totally valid but not usable in CSS (which only accepts IDENTS). Wouldn’t it be good to change the syntax of attribute selectors to better reflect the attribute syntax of HTML5?

(my usecase was to create human-readable computed data attributes like “data-user.isAdmin” and use them in my CSS)

Received on Monday, 1 July 2013 19:49:13 UTC