fix attribute selectors when containing dashes