Currently the attribute selector https://github.com/microsoft/playwright/blob/master/docs/selectors.md#id-data-testid-data-test-id-data-test-and-their-light-counterparts searches for id, data-testid, data-test-id, data-test and their :light counterparts.
Would it not make more sense to rename all these to just attribute, or at least add attribute to the list? API's that are almost self-explanatory by naming conventions are great APIs.