add spec about pattern attribute