Fix bug about allowed characters in css/event selector attribute value.