Yes, data-* attributes can function as boolean attributes, at least as far as the DOM and browser selector engines are concerned: http://jsfiddle.net/MhJNb/
I haven't tested compatibility, but Chrome has no problem with applying div[data-on] rules to .